Class FilteredRequestCallbackDefault<TResponse>

The default implementation of the IFilteredRequestCallback<TResponse>. It logs calls on either DEBUG or WARN log level, depending on the result.

Inheritance
System.Object
DefaultCallback
DefaultStream
FilteredRequestCallbackDefault<TResponse>
Implements
IStream
ICallback
IFilteredRequestCallback<TResponse>
Inherited Members
DefaultStream.OnClose()
DefaultCallback.OnError(ErrorReason)
Namespace: PushTechnology.ClientInterface.Client.Features
Assembly: Diffusion.Client.dll
Syntax
public class FilteredRequestCallbackDefault<TResponse> : DefaultStream, IStream, ICallback, IFilteredRequestCallback<TResponse>
Type Parameters
Name Description
TResponse

The response type.

Remarks

Since 6.1

Methods

OnResponse(ISessionId, TResponse)

Called when a response has been received.

Declaration
public virtual 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 the session.

Declaration
public virtual 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.

Implements

IStream
ICallback
IFilteredRequestCallback<TResponse>
Back to top