Class SubscriptionByFilterContextCallbackDefault<TC>

Default implementation of ISubscriptionByFilterContextCallback<TC>.

Inheritance
System.Object
DefaultContextCallback<TC>
SubscriptionByFilterContextCallbackDefault<TC>
Implements
ISubscriptionByFilterContextCallback<TC>
IContextCallback<TC>
Inherited Members
DefaultContextCallback<TC>.OnError(TC, ErrorReason)
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Topics
Assembly: Diffusion.Client.dll
Syntax
public class SubscriptionByFilterContextCallbackDefault<TC> : DefaultContextCallback<TC>, ISubscriptionByFilterContextCallback<TC>, IContextCallback<TC>
Type Parameters
Name Description
TC

The context object type.

Remarks

This logs OnComplete calls at 'Debug' level and OnRejected calls at 'Error' level. These methods may be overridden to perform more specific processing.

Methods

OnComplete(TC, Int32)

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

Declaration
public virtual 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
public virtual 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.

Implements

ISubscriptionByFilterContextCallback<TC>
IContextCallback<TContext>
Back to top