-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathIPipelineProcessorsRegistrar.cs
More file actions
30 lines (28 loc) · 1.47 KB
/
Copy pathIPipelineProcessorsRegistrar.cs
File metadata and controls
30 lines (28 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using ViennaNET.Mediator.Pipelines;
using ViennaNET.Mediator.Seedwork;
namespace ViennaNET.Mediator
{
[Obsolete(
"Данный пакет устарел и будет удален в ноябре 2023. Пожалуйста используйте ViennaNET.Extensions.Mediator")]
public interface IPipelineProcessorsRegistrar
{
/// <summary>
/// Performs registration for message pre-processor.
/// </summary>
/// <typeparam name="TMessage">The type of message <see cref="IMessage" />.</typeparam>
/// <typeparam name="TPipelineProcessor">The type of pre-processor.</typeparam>
/// <param name="registerPreProcessor">Instance of pre-processor.</param>
/// <param name="order">Order of pre-processor for ordered execution.</param>
void RegisterMessagePreProcessor<TMessage, TPipelineProcessor>(TPipelineProcessor registerPreProcessor, int order)
where TMessage : class, IMessage
where TPipelineProcessor : IMessagePreProcessor<TMessage>;
/// <summary>
/// Performs registration broadcast pre-processor.
/// </summary>
/// <typeparam name="TPipelineProcessor">Type of pre-processor.</typeparam>
/// <param name="registerPreProcessor">Instance of pre-processor.</param>
/// <param name="order">Order of pre-processor for ordered execution.</param>
void RegisterBroadcastPreProcessor<TPipelineProcessor>(TPipelineProcessor registerPreProcessor, int order)
where TPipelineProcessor : IBroadcastPreProcessor;
}
}