request_manager library
A predictable CQRS manager.
Classes
- Command
- A command Request that doesn't return any data.
-
CommandHandler<
TCommand extends Command> -
Command handler for
TCommand
. -
PipelineBehavior<
TResponse, TRequest> - Pipeline behavior to surround the inner handler. Implementations add additional behavior and await the next delegate.
- PipelineBehaviorStore
- PipelineConfigurator
-
Query<
TResponse extends Object> -
A query Request that will return
TResponse
. -
QueryHandler<
TResponse extends Object, TQuery extends Query< TResponse> > -
Query handler for
TQuery
. -
Request<
TResponse extends Object?> - Base request that can be used to send requests to their handlers.
- RequestHandlerStore
- RequestManager
- Send requests through the mediator to be handled by a single handler.
Extensions
Typedefs
-
PipelineBehaviorFactory<
TResponse, TRequest> = PipelineBehavior< TResponse, TRequest> Function() - Factory to create a PipelineBehavior.
-
PipelineHandler<
TResponse, TRequest> = FutureOr< TResponse> Function(TRequest, RequestHandlerDelegate<TResponse> ) -
RequestHandlerDelegate<
TResponse> = FutureOr< TResponse> Function() - Represents the continuation for the next task to execute in the pipeline.
-
RequestHandlerFactory<
TResponse, TRequest extends Request< TResponse> > = RequestHandler<TResponse, TRequest> Function() -
Factory to create a
RequestHandler
.