|
Ditto 5.0.0
|
Provides access to sync related functionality of Ditto. More...
Public Member Functions | |
| void | Start () |
| Starts all network transports. | |
| void | Stop () |
| Stops all network transports. | |
| DittoSyncSubscription | RegisterSubscription (string query, Dictionary< string, object > arguments=default) |
| Installs and returns a sync subscription for a query, configuring Ditto to receive updates from other peers for documents matching that query. The passed in query must be a SELECT query, otherwise a DittoQueryNotSupportedException will be thrown. | |
| DittoSyncSubscription | RegisterSubscription (string query, object arguments) |
| Installs and returns a sync subscription for a query, configuring Ditto to receive updates from other peers for documents matching that query. The passed in query must be a SELECT query, otherwise a DittoQueryNotSupportedException will be thrown. | |
| Public Member Functions inherited from DittoSDK.Internal.Drop | |
| void | Dispose () |
| Suppresses finalization and initiates custom disposal logic. | |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
| Protected Member Functions inherited from DittoSDK.Internal.Drop | |
| 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. | |
Properties | |
| IReadOnlyCollection< DittoSyncSubscription > | Subscriptions [get] |
| Gets all currently active sync subscriptions. | |
| bool | IsActive [get] |
Gets a value indicating whether or not sync is active. Use Start() to activate and Stop() to deactivate sync. | |
| Properties inherited from DittoSDK.Internal.Drop | |
| bool | IsDisposed [get] |
Provides access to sync related functionality of Ditto.
|
inline |
Installs and returns a sync subscription for a query, configuring Ditto to receive updates from other peers for documents matching that query. The passed in query must be a SELECT query, otherwise a DittoQueryNotSupportedException will be thrown.
| query | A string containing a valid query expressed in DQL. |
| arguments | A dictionary of values keyed by the placeholder name without the leading : Example: new Dictionary<string, object>() { { "mileage" , 123 } }
|
| DittoStoreException | Can throw a DittoStoreException. For more granular exception handling check the following subtypes:
|
|
inline |
Installs and returns a sync subscription for a query, configuring Ditto to receive updates from other peers for documents matching that query. The passed in query must be a SELECT query, otherwise a DittoQueryNotSupportedException will be thrown.
| query | A string containing a valid query expressed in DQL. |
| arguments | An object that serializes to a dictionary of values keyed by the placeholder name without the leading : Example: new MyArguments { mileage = 123 }
|
| DittoStoreException | Can throw a DittoStoreException. For more granular exception handling check the following subtypes:
|
|
inline |
Starts all network transports.
The default network configuration can be modified via Ditto.TransportConfig
| DittoException | Thrown if the Ditto instance hasn't been activated by a successful call to SetOfflineOnlyLicenseToken. |
|
inline |
Stops all network transports.
You may continue to use the Ditto store locally but no data will sync to or from other devices.