Ditto 4.11.0
 
Loading...
Searching...
No Matches
DittoSDK.DittoSyncSubscription Class Reference

A sync subscription configures Ditto to receive updates from remote peers about documents matching the subscription's query. More...

Public Member Functions

void Cancel ()
 Cancels the sync subscription so that new changes matching the query are no longer received from other peers. No-op if it's already cancelled or the owning Ditto object goes out of scope.
 

Properties

Ditto Ditto [get]
 Gets the Ditto instance this subscription belongs to.
 
string QueryString [get]
 Gets the query string of the sync subscription (as passed while registering it).
 
Dictionary< string, object > QueryArguments [get]
 Gets the query arguments of the sync subscription (as passed while registering it).
 
bool IsCancelled [get]
 Gets a value indicating whether the sync subscription has been cancelled or not. Also, a sync subscription is considered cancelled if the owning Ditto object goes out of scope.
 

Detailed Description

A sync subscription configures Ditto to receive updates from remote peers about documents matching the subscription's query.

Create a sync subscription by calling DittoSync.RegisterSubscription. The subscription will remain active until either explicitly cancelled or the owning Ditto object goes out of scope or Cancel() is called.