Interface IContextStream<TContext>
The extension of IContextCallback<TContext> that allows many callbacks for each call context.
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Callbacks
Assembly: Diffusion.Client.dll
Syntax
public interface IContextStream<in TContext> : IContextCallback<TContext>
Type Parameters
Name | Description |
---|---|
TContext | The context object type. |
Remarks
> [!CAUTION] > Deprecated since 6.7. > Methods that use contextual callbacks are deprecated and will be > removed in a future release. Use a Task instead.
This interface and its extensions are alternatives to the IStream interface hierarchy that allow the application to associate an arbitrary context object with each call. Any suitable application object can be provided as the context. It will be passed on to the corresponding callback methods, allowing requests and responses to be correlated. The context object is optional (it may be null).
In all other respects this interface and IStream behave identically.
Since 5.1
Methods
OnClose(TContext)
Notification that a call context was closed normally.
Declaration
void OnClose(TContext context)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | The context object the application supplied when making the call. May be null. |
Remarks
No further calls will be made for the stream context.