Diffusion .NET API  5.9.24
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicManagementHandler Interface Reference

Callback interface for the topic management feature. More...

Public Member Functions

void OnMessageFromClient (SessionId client, ITopicPathSelector topic, IContent content, IReceiveContext context)
 Receives content sent from a client via a topic. More...
 
void OnTopicAdded (ITopicPathSelector topic)
 A topic has been added. More...
 
void OnTopicAddFailed (string name, string reason)
 An attempt to add a topic has failed. More...
 
void OnPublishFailed (ITopicPathSelector topic, IContent content, ITopicSendOptions sendOptions, string reason)
 An attempt to publish to a topic failed. More...
 
void OnSendFailed (ITopicPathSelector topic, IClientEndpoint clients, IContent content, ITopicSendOptions sendOptions, string reason)
 An attempt to send failed. More...
 

Detailed Description

Callback interface for the topic management feature.

Member Function Documentation

void PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicManagementHandler.OnMessageFromClient ( SessionId  client,
ITopicPathSelector  topic,
IContent  content,
IReceiveContext  context 
)

Receives content sent from a client via a topic.

Only content sent to topics with no topic data will be routed in this way. All others will have been discarded at the server.

Parameters
clientIdentifies the client that sent the content.
topicThe topic that the content was sent on.
contentThe content sent by the client.
contextThe context associated with the content.
void PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicManagementHandler.OnPublishFailed ( ITopicPathSelector  topic,
IContent  content,
ITopicSendOptions  sendOptions,
string  reason 
)

An attempt to publish to a topic failed.

Parameters
topicThe topic upon which publication failed.
contentThe content that was sent with the publish request.
sendOptionsThe options sent with the publish request.
reasonThe reason for failure.
void PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicManagementHandler.OnSendFailed ( ITopicPathSelector  topic,
IClientEndpoint  clients,
IContent  content,
ITopicSendOptions  sendOptions,
string  reason 
)

An attempt to send failed.

Parameters
topicThe topic upon which the send failed.
clientsThe client endpoints that the request was sent to.
contentThe content that was sent with the send request.
sendOptionsThe options sent with the sent request.
reasonThe reason for failure.
void PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicManagementHandler.OnTopicAdded ( ITopicPathSelector  topic)

A topic has been added.

Parameters
topicThe topic that was added.
void PushTechnology.ClientInterface.Client.Features.Control.Topics.ITopicManagementHandler.OnTopicAddFailed ( string  name,
string  reason 
)

An attempt to add a topic has failed.

Parameters
name~The topic name as supplied to the add request.
reasonThe reason for failure.

The documentation for this interface was generated from the following file: