Interface ISyncStream
A handle to a ISyncStreamDescription that allows subscribing to the stream. To obtain an instance of ISyncStream, call SyncStream(string, Dictionary<string, object>?).
public interface ISyncStream : ISyncStreamDescription
- Inherited Members
Methods
- Subscribe(SyncStreamSubscribeOptions?)
Adds a subscription to this stream, requesting it to be included when connecting to the sync service. You should keep a reference to the returned ISyncStreamSubscription object as long as you need data for that stream. As soon as Unsubscribe() is called for all subscriptions on this stream, the Ttl starts ticking and will eventually evict the stream (unless Subscribe(SyncStreamSubscribeOptions?) is called again).
- UnsubscribeAll()
Clears all subscriptions attached to this stream and resets the TTL for the stream. This is a potentially dangerous operation, as it interferes with other stream subscriptions.