Method | Description | |
---|---|---|
BeginRefreshDatasetMetadata ( AsyncCallback callback, object state ) : IAsyncResult |
Initiates the asynchronous execution of the RefreshDatasetMetadata operation. Refreshes dataset metadata. Dataset metadata is pulled from remote storage and stored in local storage. Their record data isn't pulled down until you sync each dataset.
|
|
CognitoSyncManager ( CognitoAWSCredentials cognitoCredentials ) : System |
Creates an instance of CognitoSyncManager using Cognito Credentials, the region is picked up from the config if it available
|
|
CognitoSyncManager ( CognitoAWSCredentials cognitoCredentials, AmazonCognitoSyncConfig config ) : System |
Creates an instance of CognitoSyncManager using cognito credentials and a configuration object
|
|
CognitoSyncManager ( CognitoAWSCredentials cognitoCredentials, RegionEndpoint endpoint ) : System |
Creates an instance of CognitoSyncManager using cognito credentials and a specific region
|
|
Dispose ( ) : void |
Releases the resources consumed by this object
|
|
EndRefreshDatasetMetadata ( IAsyncResult asyncResult ) : List |
Finishes the asynchronous execution of the RefreshDatasetMetadata operation.
|
|
ListDatasets ( ) : List |
Retrieves a list of datasets from local storage. It may not reflect the latest dataset on the remote storage until the RefreshDatasetMetadata operation is performed.
|
|
OpenOrCreateDataset ( string datasetName ) : |
Opens or creates a dataset. If the dataset doesn't exist, an empty one with the given name will be created. Otherwise, the dataset is loaded from local storage. If a dataset is marked as deleted but hasn't been deleted on remote via the RefreshDatasetMetadata operation, it will throw System.InvalidOperationException.
|
|
RefreshDatasetMetadataAsync (
|
Refreshes dataset metadata. Dataset metadata is pulled from remote storage and stored in local storage. Their record data isn't pulled down until you sync each dataset.
|
|
RefreshDatasetMetadataAsync ( AmazonCognitoSyncCallback |
Refreshes dataset metadata. Dataset metadata is pulled from remote storage and stored in local storage. Their record data isn't pulled down until you sync each dataset.
|
|
WipeData ( ) : void |
Wipes all user data cached locally, including identity id, session credentials, dataset metadata, and all records. Any data that hasn't been synced will be lost. This method is usually used when customer logs out.
|
|
WipeData ( bool wipeCredentialsAndID ) : void |
Wipes all user data cached locally, including dataset metadata, and all records, and optionally identity id and session credentials. Any data that hasn't been synced will be lost. This method is usually used when customer logs out. Wipe Credentials and IdentityId.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the resources consumed by this object if disposing is true.
|
|
IdentityChanged ( object sender, |
This is triggered when an Identity Change event occurs. The dataset are then remapped to the new identity id. This may happend for example when a user is working with unauthenticated id and later decides to authenticate himself with a public login provider
|
Method | Description | |
---|---|---|
ValidateParameters ( ) : void |
public BeginRefreshDatasetMetadata ( AsyncCallback callback, object state ) : IAsyncResult | ||
callback | AsyncCallback | An AsyncCallback delegate that is invoked when the operation completes. |
state | object | A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. |
return | IAsyncResult |
public CognitoSyncManager ( CognitoAWSCredentials cognitoCredentials ) : System | ||
cognitoCredentials | CognitoAWSCredentials | |
return | System |
public CognitoSyncManager ( CognitoAWSCredentials cognitoCredentials, AmazonCognitoSyncConfig config ) : System | ||
cognitoCredentials | CognitoAWSCredentials | |
config | AmazonCognitoSyncConfig | |
return | System |
public CognitoSyncManager ( CognitoAWSCredentials cognitoCredentials, RegionEndpoint endpoint ) : System | ||
cognitoCredentials | CognitoAWSCredentials | |
endpoint | RegionEndpoint | |
return | System |
public EndRefreshDatasetMetadata ( IAsyncResult asyncResult ) : List |
||
asyncResult | IAsyncResult | The IAsyncResult returned by the call to BeginRefreshDatasetMetadata. |
return | List |
protected IdentityChanged ( object sender, |
||
sender | object | The object which triggered this methos |
e | Event Arguments | |
return | void |
public OpenOrCreateDataset ( string datasetName ) : |
||
datasetName | string | DatasetName, must be [a-zA-Z0=9_.:-]+ |
return |
public RefreshDatasetMetadataAsync (
|
||
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task
|
public RefreshDatasetMetadataAsync ( AmazonCognitoSyncCallback |
||
callback | AmazonCognitoSyncCallback |
Callback once the refresh is complete |
options | AsyncOptions | Options for asynchronous execution |
return | void |
public WipeData ( bool wipeCredentialsAndID ) : void | ||
wipeCredentialsAndID | bool | |
return | void |