Table of Contents

Class DefaultContextCallback<TContext>

Namespace
PushTechnology.ClientInterface.Client.Callbacks
Assembly
Diffusion.Client.dll

The default IContextCallback<TContext> implementation.

public class DefaultContextCallback<TContext> : IContextCallback<TContext>

Type Parameters

TContext

The context object type.

Inheritance
DefaultContextCallback<TContext>
Implements
Inherited Members

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.

public virtual void OnError(TContext context, ErrorReason errorReason)

Parameters

context TContext

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.