Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Features.TopicStreamDefault Class Reference

The default ITopicStream implementation. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.TopicStreamDefault:
PushTechnology.ClientInterface.Client.Callbacks.DefaultStream PushTechnology.ClientInterface.Client.Features.ITopicStream PushTechnology.ClientInterface.Client.Callbacks.DefaultCallback PushTechnology.ClientInterface.Client.Callbacks.IStream PushTechnology.ClientInterface.Client.Callbacks.IStream PushTechnology.ClientInterface.Client.Callbacks.ICallback PushTechnology.ClientInterface.Client.Callbacks.ICallback PushTechnology.ClientInterface.Client.Callbacks.ICallback

Public Member Functions

virtual void OnSubscription (string topicPath, ITopicDetails details)
 Called when a session is subscribed to a topic that matches the stream registration. More...
 
virtual void OnUnsubscription (string topicPath, TopicUnsubscribeReason reason)
 Called if the session is unsubscribed from a topic that matches the stream registration. More...
 
virtual void OnTopicUpdate (string topicPath, IContent content, IUpdateContext context)
 This indicates an update to the state of a topic that is subscribed to. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Client.Callbacks.DefaultStream
virtual void OnClose ()
 Notification that a stream context was closed normally. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Client.Callbacks.DefaultCallback
virtual void OnError (ErrorReason errorReason)
 Notification of a contextual error related to this callback. More...
 

Detailed Description

The default ITopicStream implementation.

This simply logs calls at 'debug' level. This can be overridden to perform some more specific action.

Member Function Documentation

virtual void PushTechnology.ClientInterface.Client.Features.TopicStreamDefault.OnSubscription ( string  topicPath,
ITopicDetails  details 
)
virtual

Called when a session is subscribed to a topic that matches the stream registration.

Parameters
topicPathThe full topic path.
detailsThe basic topic details.

Implements PushTechnology.ClientInterface.Client.Features.ITopicStream.

virtual void PushTechnology.ClientInterface.Client.Features.TopicStreamDefault.OnTopicUpdate ( string  topicPath,
IContent  content,
IUpdateContext  context 
)
virtual

This indicates an update to the state of a topic that is subscribed to.

Parameters
topicPathThe full topic path.
contentThe topic content. The context can contain more information about the nature of the content.
contextThe update context which can indicate whether the content represents the total state or a change to the state.

Implements PushTechnology.ClientInterface.Client.Features.ITopicStream.

virtual void PushTechnology.ClientInterface.Client.Features.TopicStreamDefault.OnUnsubscription ( string  topicPath,
TopicUnsubscribeReason  reason 
)
virtual

Called if the session is unsubscribed from a topic that matches the stream registration.

Parameters
topicPathThe full topic path.
reasonThe reason for unsubscription.

Implements PushTechnology.ClientInterface.Client.Features.ITopicStream.


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