Class DefaultContextCallback<TContext>

The default IContextCallback<TContext> implementation.

Inheritance
System.Object
DefaultContextCallback<TContext>
DefaultContextStream<TContext>
UpdateStoreContextCallbackDefault<TContext>
SubscriptionByFilterContextCallbackDefault<TC>
TopicControlRemovalContextCallbackDefault<TContext>
Implements
IContextCallback<TContext>
Namespace: PushTechnology.ClientInterface.Client.Callbacks
Assembly: Diffusion.Client.dll
Syntax
public class DefaultContextCallback<TContext> : object, IContextCallback<TContext>
Type Parameters
Name Description
TContext

The context object type.

Remarks

This simply logs OnError(TContext, ErrorReason) calls at debug level. This should be overridden to perform more specific error handling.

Methods

OnError(TContext, ErrorReason)

Notification of a contextual error related to this callback.

Declaration
public virtual void OnError(TContext context, ErrorReason errorReason)
Parameters
Type Name Description
TContext context

The context object supplied when making the call. May be null.

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.

Implements

IContextCallback<TContext>
Back to top