Interface IContextStream<TContext>
The extension of IContextCallback<TContext> that allows many callbacks for each call context.
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Features
Assembly: Diffusion.Client.dll
Syntax
public interface IContextStream<in TContext> : IContextCallback<TContext>
Type Parameters
Name | Description |
---|---|
TContext | The context object type. |
Remarks
Deprecated: Stream has only been used in IFetchContextStream<TContext> which is now deprecated. This interface will be removed in a future release.
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 the context stream and IStream behave identically.
Methods
OnClose(TContext)
Called to notify that the stream 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. |
Remarks
No further calls will be made for the stream context.