Class ChaparPipelineExtensions
Inherited Members
Namespace: Chapar.Pipeline.Extensions
Assembly: Chapar.Pipeline.dll
Syntax
public static class ChaparPipelineExtensions
Methods
| Edit this page View SourceAddChaparPipeline(IServiceCollection)
Adds the Chapar pipeline infrastructure to the service collection by decorating all registered IMessageHandler<TMessage> with the registered IPipelineBehavior<TMessage>.
Declaration
public static IServiceCollection AddChaparPipeline(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services |
Returns
| Type | Description |
|---|---|
| IServiceCollection |
AddChaparPipelineBehavior(IServiceCollection, Type)
Registers an open‑generic pipeline behaviour that will be applied to all message types. The behaviour type must be an open generic class that implements IPipelineBehavior<TMessage>.
Declaration
public static IServiceCollection AddChaparPipelineBehavior(this IServiceCollection services, Type openGenericBehaviorType)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The IServiceCollection. |
| Type | openGenericBehaviorType | The open generic type of the behaviour, e.g. |
Returns
| Type | Description |
|---|---|
| IServiceCollection |