Interface IMissingTopicNotificationStream
The stream that will be called when a session subscribes or fetches using a topic selector that matches no topics.
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Topics
Assembly: Diffusion.Client.dll
Syntax
public interface IMissingTopicNotificationStream : IStream, ICallback
Remarks
Stream instances can be registered using AddMissingTopicHandlerAsync(String, IMissingTopicNotificationStream).
Methods
OnMissingTopic(IMissingTopicNotification)
Called when a session requests a topic that does not exist, and the topic path belongs to part of the topic tree for which this stream was registered.
Declaration
void OnMissingTopic(IMissingTopicNotification notification)
Parameters
Type | Name | Description |
---|---|---|
IMissingTopicNotification | notification | The missing topic notification. |
Remarks
The implementation should take the appropriate action (for example, create the topic), and then call
Proceed() on the given notification
. This allows
the session request to continue and successfully resolve against the topic if it was created.
Alternatively, the stream can call Cancel() to discard the request. A stream should always call Proceed() or Cancel(), otherwise resources will continue to be reserved on the server and the session's request will not complete.