Elements focussed on the Command side of the CQRS pattern specialised to the MediatR library
-
Asp.Net Standard/Core Dependency Injection
- Use the provided
services.AddCommandValidation(params Assembly[] validatorAssemblies)
method
- Use the provided
-
Other containers
- Register all instances of
IPipelineBehavior<,>
in your container
- Register all instances of
-
Asp.Net Standard/Core Dependency Injection
- Use the provided
serviced.AddCommandDecorators(params Assembly[] decoratorAssemblies)
method
- Use the provided
-
Other containers
- Register all instances of
INotificationHandler<>
in your container - Register all instances of
IRequestPreProcessor<>
in your container - Register all instances of
IRequestPostProcessor<,>
in your container - Register all instances of
IRequestExceptionHandler<,,>
in your container - Register all instances of
IRequestExceptionAction<,>
in your container
- Register all instances of
- Create any Validation classes and inherit from
ICommandValidator<>
- Create any Decorator classes and inherit from
INotificationHandler<TNotification
,IRequestPreProcessor<TRequest>
,IRequestPostProcessor<TRequest, TResponse>
,IRequestExceptionHandler<TRequest, TResponse, TException>
, orIRequestExceptionAction<TRequest, TException>
The validation and/or decorator classes will be automatically injected into the pipeline