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

A default implementation of the handler class which simply logs the callback events. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.Control.Topics.MissingTopicHandlerDefault:
PushTechnology.ClientInterface.Client.Features.TopicTreeHandlerDefault PushTechnology.ClientInterface.Client.Features.Control.Topics.IMissingTopicHandler PushTechnology.ClientInterface.Client.Features.ITopicTreeHandler PushTechnology.ClientInterface.Client.Features.ITopicTreeHandler

Public Member Functions

virtual void OnMissingTopic (IMissingTopicNotification notification)
 Called when a client 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 successfully registered with the server. More...
 
virtual void OnClose (string topicPath)
 Called if the handler is closed. This happens if the call to register the handler fails, or the handler is unregistered. More...
 

Detailed Description

A default implementation of the handler class which simply logs the callback events.

Member Function Documentation

virtual void PushTechnology.ClientInterface.Client.Features.Control.Topics.MissingTopicHandlerDefault.OnMissingTopic ( IMissingTopicNotification  notification)
virtual

Called when a client 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 handler implementation should take the appropriate action (for example, create the topic), and then call IMissingTopicNotification.Proceed on the supplied notification. This allows the client request to continue and successfully resolve against the topic if it was created.

A handler should always call Proceed() otherwise resources will continue to be reserved on the server and the client's request will not complete.

Parameters
notification

Implements PushTechnology.ClientInterface.Client.Features.Control.Topics.IMissingTopicHandler.


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