Class RequestHandlerBase<TConfiguration>
Defines the base class for request handlers.
Inheritance
RequestHandlerBase<TConfiguration>
Implements
Inherited Members
Namespace: Solti.Utils.Rpc.Pipeline
Assembly: Solti.Utils.Rpc.Server.dll
Syntax
public abstract class RequestHandlerBase<TConfiguration> : IRequestHandler where TConfiguration : class
Type Parameters
| Name | Description |
|---|---|
| TConfiguration |
Constructors
RequestHandlerBase(IRequestHandler, TConfiguration)
Creates a new RequestHandlerBase<TConfiguration> instance.
Declaration
protected RequestHandlerBase(IRequestHandler next, TConfiguration config)
Parameters
| Type | Name | Description |
|---|---|---|
| IRequestHandler | next | |
| TConfiguration | config |
Properties
Config
The configuration.
Declaration
public TConfiguration Config { get; }
Property Value
| Type | Description |
|---|---|
| TConfiguration |
Next
The next handler to be called.
Declaration
public IRequestHandler Next { get; }
Property Value
| Type | Description |
|---|---|
| IRequestHandler |
Remarks
A handler should not invoke the Next instance after closing the session.
Methods
HandleAsync(IInjector, IHttpSession, CancellationToken)
Does some handler specific work.
Declaration
public abstract Task HandleAsync(IInjector scope, IHttpSession context, CancellationToken cancellation)
Parameters
| Type | Name | Description |
|---|---|---|
| Solti.Utils.DI.Interfaces.IInjector | scope | |
| IHttpSession | context | |
| CancellationToken | cancellation |
Returns
| Type | Description |
|---|---|
| Task |