Interface IResponder<TResponse>
- Namespace
- PushTechnology.ClientInterface.Client.Features
- Assembly
- Diffusion.Client.dll
Responder interface to dispatch responses to requests.
public interface IResponder<TResponse>
Type Parameters
TResponseThe response type.
Remarks
Since 6.1
Methods
Reject(string)
Rejects the request.
void Reject(string message)
Parameters
messagestringContext message to be contained in the rejection.
Respond(TResponse)
Dispatches a response to a request.
void Respond(TResponse response)
Parameters
responseTResponseResponse to dispatch.
Exceptions
- ArgumentNullException
If the argument is
null.- InvalidCastException
If the response object is not of required type.