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