Class ContextCallbackDefault<TContext>
The default IContextCallback<TContext> implementation.
Inheritance
ContextCallbackDefault<TContext>
Implements
IContextCallback<TContext>
Namespace: PushTechnology.ClientInterface.Client.Features
Assembly: Diffusion.Client.dll
Syntax
public class ContextCallbackDefault<TContext> : object, IContextCallback<TContext>
Type Parameters
Name | Description |
---|---|
TContext | The context object type. |
Remarks
This simply logs any OnDiscard(TContext) response at 'warn' level. The method should be overridden if anything other than a logged warning would be required in such an eventuality.
Methods
OnDiscard(TContext)
Called to notify that a call context was closed prematurely, typically due to a timeout or the session being closed.
Declaration
public virtual void OnDiscard(TContext context)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | The context object associated with this callback. |
Remarks
No further calls will be made for the context.