Interface IRequestHandler<TRequest, TResponse>
Interface which specifies a request handler to receive request notifications. Respond(TResponse) must be called to dispatch a response to the request.
Namespace: PushTechnology.ClientInterface.Client.Features
Assembly: Diffusion.Client.dll
Syntax
public interface IRequestHandler<TRequest, TResponse> : IStream, ICallback
Type Parameters
Name | Description |
---|---|
TRequest | The request type. |
TResponse | The response type. |
Remarks
Since 6.1
Methods
OnRequest(TRequest, IRequestContext, IResponder<TResponse>)
Called to indicate that a request has been received.
Declaration
void OnRequest(TRequest request, IRequestContext context, IResponder<TResponse> responder)
Parameters
Type | Name | Description |
---|---|---|
TRequest | request | The received request. |
IRequestContext | context | The context with necessary information about the request. |
IResponder<TResponse> | responder | The object used to dispatch a response to the requester. |