Diffusion .NET Client Library
6.1.5
|
The default IMissingTopicHandler implementation. More...
Public Member Functions | |
virtual void | OnMissingTopic (IMissingTopicNotification notification) |
Called when a session requests a topic that does not exist, and the topic path belongs to part of the topic tree for which this handler was registered. More... | |
Public Member Functions inherited from PushTechnology.ClientInterface.Client.Features.TopicTreeHandlerDefault | |
virtual void | OnActive (string topicPath, IRegisteredHandler registeredHandler) |
Called when the handler has been registered at the server and is now active. More... | |
virtual void | OnClose (string topicPath) |
Called if the handler is closed. More... | |
The default IMissingTopicHandler implementation.
|
virtual |
Called when a session requests a topic that does not exist, and the topic path belongs to part of the topic tree for which this handler was registered.
The implementation should take the appropriate action (for example, create the topic), and then call IMissingTopicNotification.Proceed() on the given notification . This allows the session request to continue and successfully resolve against the topic if it was created.
Alternatively, the handler can call IMissingTopicNotification.Cancel() to discard the request. A handler should always call IMissingTopicNotification.Proceed() or IMissingTopicNotification.Cancel(), otherwise resources will continue to be reserved on the server and the session's request will not complete.
notification | The missing topic notification. |
Implements PushTechnology.ClientInterface.Client.Features.Control.Topics.IMissingTopicHandler.