Class SendContextCallbackDefault<TC>
The default implementation of ISendContextCallback<TC>.
This simply logs OnComplete and OnDiscard calls at 'Debug' level. This method may be overridden to perform more specific processing.
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Topics
Assembly: Diffusion.Client.dll
Syntax
public class SendContextCallbackDefault<TC> : object, ISendContextCallback<TC>, IContextCallback<TC>
Type Parameters
Name | Description |
---|---|
TC | The context object type. |
Remarks
Deprecated: One-way messaging is deprecated in favor of request-response messaging. See SendRequestAsync<TRequest, TResponse>(String, TRequest). This class will be removed in a future release.
Methods
OnComplete(TC)
Called to indicate that the send message has been received by the server. This does not necessarily mean that it has been delivered to any recipient.
Declaration
public virtual void OnComplete(TC context)
Parameters
Type | Name | Description |
---|---|---|
TC | context | The context object supplied when making the call. May be null. |
OnDiscard(TC)
Notification that a context was closed prematurely, typically due to a timeout or the session being closed. No further calls will be made for a context.
Declaration
public virtual void OnDiscard(TC context)
Parameters
Type | Name | Description |
---|---|---|
TC | context |