Table of Contents

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

TRequest

The request type.

TResponse

The 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

request TRequest

The received request.

context IRequestContext

The context with necessary information about the request.

responder IResponder<TResponse>

The object used to dispatch a response to the requester.