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

Represents the default IMessageStream implementation. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.DefaultMessageStream:
PushTechnology.ClientInterface.Client.Callbacks.DefaultStream PushTechnology.ClientInterface.Client.Features.IMessageStream 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 OnMessageReceived (string topicPath, IContent content, IReceiveContext context)
 Called if a message has been received for a specific path. 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

Represents the default IMessageStream implementation.

This simply logs OnMessageReceived calls at 'debug' level which may be useful for debugging purposes. This method should be overridden to provide processing of inbound messages.

Member Function Documentation

virtual void PushTechnology.ClientInterface.Client.Features.DefaultMessageStream.OnMessageReceived ( string  topicPath,
IContent  content,
IReceiveContext  context 
)
virtual

Called if a message has been received for a specific path.

How this originates and what the content contains is dependent on the sender of the message.

Parameters
topicPathThe path to which the message was sent
contentThe message content. If the content is known to be of a certain IDataType then IDataType.ReadValue(IBytes) may be used to convert it.
contextThe receive context.

Implements PushTechnology.ClientInterface.Client.Features.IMessageStream.


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