Interface ISubscriptionByFilterContextCallback<TC>

Callback interface for filtered subscriptions and unsubscriptions that have an associated context.

Inherited Members
IContextCallback<TC>.OnError(TC, ErrorReason)
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Topics
Assembly: Diffusion.Client.dll
Syntax
public interface ISubscriptionByFilterContextCallback<in TC> : IContextCallback<TC>
Type Parameters
Name Description
TC

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.

Methods

OnComplete(TC, Int32)

Called to indicate successful processing of the request at the server.

Declaration
void OnComplete(TC context, int numberSelected)
Parameters
Type Name Description
TC context

The context object the application supplied when making the call; may be null.

System.Int32 numberSelected

Indicates the number of sessions that satisfied the filter and which qualified for subscription/unsubscription. This could be 0 if no sessions matched the filter.

OnRejected(TC, ICollection<IErrorReport>)

The filter was rejected. No sessions were subscribed/unsubscribed.

Declaration
void OnRejected(TC context, ICollection<IErrorReport> errors)
Parameters
Type Name Description
TC context

The context object supplied when making the call.

ICollection<IErrorReport> errors

The detail of why the filter was rejected.

Back to top