Interface ISendToFilterContextCallback<TC>
Callback interface for filtered send operation notifications that have an associated context.
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Topics
Assembly: Diffusion.Client.dll
Syntax
public interface ISendToFilterContextCallback<in TC> : IContextCallback<TC>
Type Parameters
Name | Description |
---|---|
TC | The context object type. |
Remarks
Deprecated: This is only used within one-way messaging, which is deprecated from this release. This interface will be removed in a future release.
Methods
OnComplete(TC, Int32)
Called to indicate successful processing of the send request at the server.
Declaration
void OnComplete(TC context, int numberSent)
Parameters
Type | Name | Description |
---|---|---|
TC | context | The context object the application supplied when making the call; may be null. |
Int32 | numberSent | Indicates the number of clients that satisfied the filter and to which the message was sent. This could be zero if no client sessions matched the filter. |
OnRejected(TC, ICollection<IErrorReport>)
The filter was rejected. The message was not sent to any clients.
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. |