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

Represents a stream that may be registered to receive messages from the IMessaging feature. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.IMessageStream:
PushTechnology.ClientInterface.Client.Callbacks.IStream PushTechnology.ClientInterface.Client.Callbacks.ICallback PushTechnology.ClientInterface.Client.Features.DefaultMessageStream

Public Member Functions

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.IStream
void OnClose ()
 Notification that a stream context was closed normally. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Client.Callbacks.ICallback
void OnError (ErrorReason errorReason)
 Notification of a contextual error related to this callback. More...
 

Detailed Description

Represents a stream that may be registered to receive messages from the IMessaging feature.

If the stream is removed, Callbacks.IStream.OnClose will be called.

If the session is closed, Callbacks.ICallback.OnError(ErrorReason) will be called with the reason ErrorReason.SESSION_CLOSED.



Since 5.1

Member Function Documentation

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

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, IDataType.ReadValue(IBytes) may be used to convert it.
contextThe receive context.

Implemented in PushTechnology.ClientInterface.Client.Features.DefaultMessageStream.


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