RequestManager class

Send requests through the mediator to be handled by a single handler.

Available extensions

Constructors

RequestManager({required RequestHandlerStore requestHandlerStore, required PipelineBehaviorStore pipelineBehaviorStore})
Creates a new RequestManager.
RequestManager.create()
Creates a default RequestManager.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
pipeline PipelineConfigurator
Configures the request pipeline.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<TResponse, TRequest extends Request<TResponse>>(RequestHandler<TResponse, TRequest> handler) → void
Registers the request handler for the given TRequest.
send<TResponse extends Object?>(Request<TResponse> request) Future<TResponse>
Sends a request to a single RequestHandler.
toString() String
A string representation of this object.
inherited
unregister<TResponse, TRequest extends Request<TResponse>>(RequestHandler<TResponse, TRequest> handler) → void
Registers the request handler for the given TRequest.

Operators

operator ==(Object other) bool
The equality operator.
inherited