Interface IFilteredRequestCallback<TResponse>
The callback interface for responses to requests sent to a filter.
Namespace: PushTechnology.ClientInterface.Client.Features
Assembly: Diffusion.Client.dll
Syntax
public interface IFilteredRequestCallback<TResponse> : IStream, ICallback
Type Parameters
Name | Description |
---|---|
TResponse | The type of the response. |
Remarks
Since 6.1
Methods
OnClose()
Notification that a stream context was closed normally.
Declaration
void OnClose()
Remarks
No further calls will be made for the stream context.
OnError(ErrorReason)
Notification of a contextual error related to this callback.
Declaration
void OnError(ErrorReason errorReason)
Parameters
Type | Name | Description |
---|---|---|
ErrorReason | errorReason | The reason for the error. |
Remarks
This is analogous to an exception being raised. Situations in which this method is called include the session being closed, a communication timeout, or a problem with the provided parameters. No further calls will be made to this callback for the call context.
OnResponse(ISessionId, TResponse)
Called when a response has been received.
Declaration
void OnResponse(ISessionId sessionId, TResponse response)
Parameters
Type | Name | Description |
---|---|---|
ISessionId | sessionId | The session identifier of the session that has sent the response. |
TResponse | response | The response. |
OnResponseError(ISessionId, Exception)
Called upon a response error from session.
Declaration
void OnResponseError(ISessionId sessionId, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
ISessionId | sessionId | The session identifier of the session that has sent the response. |
Exception | exception | The exception for the error result. |