Represents a stream that may be registered to receive messages from the IMessaging feature.
public interface IMessageStream : IStream, ICallback
Deprecated: One-way messaging is deprecated in favor of request-response messaging. See SendRequestAsync<TRequest, TResponse>(String, TRequest). This interface will be removed in a future release.
If the stream is removed, OnClose() will be called.
OnMessageReceived(String, IContent, IReceiveContext)
Called if a message has been received for a specific path.
void OnMessageReceived(string topicPath, IContent content, IReceiveContext context)
The path to which the message was sent
The receive context.
How this originates and what the content contains is dependent on the sender of the message.