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

Default ITopicStream implementation. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.TopicStreamDefault:
PushTechnology.ClientInterface.Client.Callbacks.StreamDefault 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)
 This notifies when a topic is subscribed to. More...
 
virtual void OnUnsubscription (string topicPath, TopicUnsubscribeReason reason)
 This notifies when a topic is unsubscribed. More...
 
virtual void OnTopicUpdate (string topicPath, IContent content, IUpdateContext context)
 Topic update received. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Client.Callbacks.StreamDefault
virtual void OnClose ()
 Called to notify 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. This is analogous to an exception being raised. Situations in which More...
 

Detailed Description

Default ITopicStream implementation.

This simply logs calls to OnSubscription, OnUnsubscription and OnTopicUpdate at 'Debug' level. These implementations may be useful during development but would usually need to be overridden to provide actual processing.

Member Function Documentation

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

This notifies when a topic is subscribed to.

This provides only TopicDetailsLevel.BASICdetails of the topic.

Parameters
topicPaththe full topic path
detailsthe basic details

Implements PushTechnology.ClientInterface.Client.Features.ITopicStream.

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

Topic update received.

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

Parameters
topicPaththe full topic path.
contentthe topic content. The context may contain more information about the nature of the content
contextthe update context which may 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

This notifies when a topic is unsubscribed.

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: