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
handlerfor the givenTRequest. -
registerFactory<
TResponse, TRequest extends Request< (TResponse> >RequestHandlerFactory< TResponse, TRequest> factory) → void -
Available on RequestManager, provided by the RequestManagerExtensions extension
Registers the givenfactory. -
registerFunction<
TResponse, TRequest extends Request< (TResponse> >FutureOr< TResponse> handler(TRequest)) → void -
Available on RequestManager, provided by the RequestManagerExtensions extension
Registers the givenhandler. -
send<
TResponse extends Object?> (Request< TResponse> request) → Future<TResponse> -
Sends a
requestto a singleRequestHandler. -
sendStream<
TResponse extends Object?> (Stream< Request< requestStream) → Stream<TResponse> >TResponse> -
Available on RequestManager, provided by the RequestManagerStreamExtensions extension
Sends arequestStreamto a singleRequestHandler. -
toString(
) → String -
A string representation of this object.
inherited
-
unregister<
TResponse, TRequest extends Request< (TResponse> >RequestHandler< TResponse, TRequest> handler) → void -
Registers the request
handlerfor the givenTRequest.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited