Свойство | Тип | Описание | |
---|---|---|---|
Dataset | Amazon.CognitoIdentity | ||
DatasetSetupInternal | void | ||
EndSynchronizeAndCleanup | void | ||
HandleNetworkChange | void | ||
HandleNetworkChange | void | ||
OnNetworkReachabilityChanged | void | ||
RunSyncOperation | void | ||
RunSyncOperation | void | ||
RunSyncOperationAsync | System.Threading.Task | ||
SynchronizeHelper | void | ||
SynchronizeHelperAsync | System.Threading.Task | ||
SynchronizeHelperAsync | void |
Метод | Описание | |
---|---|---|
Delete ( ) : void |
Delete this Amazon.CognitoSync.SyncManager.Dataset. You cannot do any more operations on this dataset.
|
|
Dispose ( ) : void |
Releases the resources consumed by this object
|
|
Get ( string key ) : string |
Gets the value of a
|
|
GetRecord ( string key ) : |
Gets the Amazon.CognitoSync.SyncManager.Record with the given key. If the Amazon.CognitoSync.SyncManager.Record doesn't exist or is marked deleted, null will be returned.
|
|
GetSizeInBytes ( string key ) : long |
Gets the size of a record with the given key. If the key is deleted, -1 will be returned. The size is calculated as sum of UTF-8 string length of record key and value
|
|
IsModified ( string key ) : bool |
Retrieves the status of a record.
|
|
Put ( string key, string value ) : void |
Puts a Amazon.CognitoSync.SyncManager.Record with the given key and value into the Dataset. If a Amazon.CognitoSync.SyncManager.Record with the same key exists, its value will be overwritten. If a Amazon.CognitoSync.SyncManager.Record is marked as deleted previously, then it will be resurrected with new value while the sync count continues with previous value. No matter whether the value changes or not, the record is considered as updated, and it will be written to Cognito Sync service on next synchronize operation. If value is null, a ArgumentNullException will be thrown.
|
|
PutAll ( string>.IDictionary |
Populates a dataset with a dictionary of key/value pairs
|
|
Remove ( string key ) : void |
Marks a Amazon.CognitoSync.SyncManager.Record with the given key as deleted. Nothing happens if the Amazon.CognitoSync.SyncManager.Record doesn't exist or is deleted already.
|
|
Resolve ( List |
Saves resolved conflicting Amazon.CognitoSync.SyncManager.Record into local storage. This is used inside SyncConflictDelegate after you resolve all conflicts.
|
|
Synchronize ( ) : void |
Synchronize Dataset between local storage and remote storage.
|
|
SynchronizeAsync ( |
Synchronize Dataset between local storage and remote storage.
|
|
SynchronizeAsync ( AsyncOptions options = null ) : void |
Synchronize Dataset between local storage and remote storage.
|
|
SynchronizeOnConnectivity ( |
Attempt to synchronize Dataset when connectivity is available. If the connectivity is available right away, it behaves the same as Dataset.SynchronizeAsync. Otherwise it listens to connectivity changes, and will do a sync once the connectivity is back. Note that if this method is called multiple times, only the last synchronize request is kept. If either the dataset or the callback is garbage collected , this method will not perform a sync and the callback won't fire.
|
|
SynchronizeOnConnectivity ( ) : void |
Attempt to synchronize Dataset when connectivity is available. If the connectivity is available right away, it behaves the same as Dataset.Synchronize(). Otherwise it listens to connectivity changes, and will do a sync once the connectivity is back. Note that if this method is called multiple times, only the last synchronize request is kept. If either the dataset or the callback is garbage collected , this method will not perform a sync and the callback won't fire.
|
|
SynchronizeOnConnectivity ( AsyncOptions options = null ) : void |
Attempt to synchronize Dataset when connectivity is available. If the connectivity is available right away, it behaves the same as Dataset.SynchronizeAsync(AsyncOptions). Otherwise it listens to connectivity changes, and will do a sync once the connectivity is back. Note that if this method is called multiple times, only the last synchronize request is kept. If either the dataset or the callback is garbage collected , this method will not perform a sync and the callback won't fire.
|
|
SynchronizeOnConnectivity ( |
Attempt to synchronize Dataset when connectivity is available. If the connectivity is available right away, it behaves the same as Dataset.SynchronizeAsync. Otherwise it listens to connectivity changes, and will do a sync once the connectivity is back. Note that if this method is called multiple times, only the last synchronize request is kept. If either the dataset or the callback is garbage collected , this method will not perform a sync and the callback won't fire.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the resources consumed by this object if disposing is true.
|
|
FireSyncFailureEvent ( |
Fires a Sync Failure event.
|
|
FireSyncSuccessEvent ( List |
Fires a Sync Success Event
|
Метод | Описание | |
---|---|---|
Dataset ( string datasetName, |
Creates a new Dataset
|
|
DatasetSetupInternal ( ) : void | ||
EndSynchronizeAndCleanup ( ) : void | ||
HandleNetworkChange ( object sender, System.Net.NetworkInformation.NetworkAvailabilityEventArgs e ) : void | ||
HandleNetworkChange ( object sender, NetworkStatusEventArgs e ) : void | ||
OnNetworkReachabilityChanged ( object sender, NetworkStatusEventArgs e ) : void | ||
RunSyncOperation ( int retry ) : void | ||
RunSyncOperation ( int retry, Runtime options ) : void | ||
RunSyncOperationAsync ( int retry, |
||
SynchronizeHelper ( ) : void | ||
SynchronizeHelperAsync ( |
||
SynchronizeHelperAsync ( AsyncOptions options ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
protected FireSyncFailureEvent ( |
||
exception | Exception object which caused the sync Failure | |
options | AsyncOptions | AsyncOptions object that controls whether |
Результат | void |
protected FireSyncSuccessEvent ( List |
||
records | List |
List of records after successful sync |
options | AsyncOptions | AsyncOptions object that controls whether |
Результат | void |
public Get ( string key ) : string | ||
key | string | Key of the record in the dataset. |
Результат | string |
public GetRecord ( string key ) : |
||
key | string | Key of the record in the dataset. |
Результат |
public GetSizeInBytes ( string key ) : long | ||
key | string | The key of a record |
Результат | long |
public IsModified ( string key ) : bool | ||
key | string | Key identifying a record |
Результат | bool |
public Put ( string key, string value ) : void | ||
key | string | Key of the record |
value | string | String value of a |
Результат | void |
public PutAll ( string>.IDictionary |
||
values | string>.IDictionary | An IDictionary of key/value pairs |
Результат | void |
public Remove ( string key ) : void | ||
key | string | Key identifying the Record |
Результат | void |
public Resolve ( List |
||
remoteRecords | List |
A list of records to save into local storage |
Результат | void |
public SynchronizeAsync ( |
||
cancellationToken | ||
Результат | System.Threading.Task |
public SynchronizeAsync ( AsyncOptions options = null ) : void | ||
options | AsyncOptions | |
Результат | void |
public SynchronizeOnConnectivity ( |
||
cancellationToken | ||
Результат | System.Threading.Task |
public SynchronizeOnConnectivity ( ) : void | ||
Результат | void |
public SynchronizeOnConnectivity ( AsyncOptions options = null ) : void | ||
options | AsyncOptions | |
Результат | void |
public SynchronizeOnConnectivity ( |
||
cancellationToken | ||
Результат | void |