A sync subscription configures Ditto to receive updates from remote peers about documents matching the subscription's query.
More...
|
|
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.
|
|
override bool | Equals (object obj) |
|
override int | GetHashCode () |
|
void | Dispose () |
| | Suppresses finalization and initiates custom disposal logic.
|
|
|
static bool | operator== (DittoSyncSubscription a, DittoSyncSubscription b) |
|
static bool | operator!= (DittoSyncSubscription a, DittoSyncSubscription b) |
|
|
override unsafe void | Dispose (bool disposing) |
| void | Dispose (bool disposing) |
| | Overload for types to dispose of resources, regardless of whether the type is being disposed or finalized. Note that finalization occurs on a dedicated thread.
|
|
|
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).
|
| byte[] | QueryArgumentsCborData [get] |
| | Gets the query arguments of the sync subscription, encoded as CBOR.
|
| string | QueryArgumentsJsonString [get] |
| | Gets the query arguments of the sync subscription, encoded as a JSON string.
|
|
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.
|
|
bool | IsDisposed [get] |
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.
◆ QueryArguments
| Dictionary<string, object> DittoSDK.Sync.DittoSyncSubscription.QueryArguments |
|
get |
◆ QueryArgumentsCborData
| byte [] DittoSDK.Sync.DittoSyncSubscription.QueryArgumentsCborData |
|
get |
Gets the query arguments of the sync subscription, encoded as CBOR.
- See also
- QueryArguments
◆ QueryArgumentsJsonString
| string DittoSDK.Sync.DittoSyncSubscription.QueryArgumentsJsonString |
|
get |
Gets the query arguments of the sync subscription, encoded as a JSON string.
- See also
- QueryArguments