The extension of IContextCallback<TContext> that allows many callbacks for each call context.
public interface IContextStream<in TContext> : IContextCallback<TContext>
The context object type.
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.
Notification that a call context was closed normally.
void OnClose(TContext context)
The context object the application supplied when making the call. May be null.
No further calls will be made for the stream context.