Diffusion .NET Client Library
6.1.5
|
Represents a stream that may be registered to receive messages from the IMessaging feature. More...
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... | |
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
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.
topicPath | The path to which the message was sent |
content | The message content. If the content is known to be of a certain IDataType, IDataType.ReadValue(IBytes) may be used to convert it. |
context | The receive context. |
Implemented in PushTechnology.ClientInterface.Client.Features.DefaultMessageStream.