Class RequestHandlerBase<TConfiguration>

Defines the base class for request handlers.

Inheritance
Object
RequestHandlerBase<TConfiguration>
ExceptionCatcherHandler
HttpAccessControlHandler
ModuleInvocationHandler
RequestLimiterHandler
RequestTimeoutHandler
SchemaProviderHandler
Implements
IRequestHandler
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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

Implements

IRequestHandler
In This Article
Back to top Generated by DocFX