Exemplo n.º 1
0
 public Dataset(string datasetName, CognitoAWSCredentials cognitoCredentials, ILocalStorage local, IRemoteDataStorage remote)
 {
     this._datasetName        = datasetName;
     this._cognitoCredentials = cognitoCredentials;
     this._local  = local;
     this._remote = remote;
     _logger      = Logger.GetLogger(this.GetType());
     UnityMainThreadDispatcher.OnRefresh += HandleConnectivityRefresh;
 }
Exemplo n.º 2
0
 public Dataset(string datasetName, CognitoAWSCredentials cognitoCredentials, ILocalStorage local, IRemoteDataStorage remote)
 {
     this._datasetName = datasetName;
     this._cognitoCredentials = cognitoCredentials;
     this._local = local;
     this._remote = remote;
     _logger = Logger.GetLogger(this.GetType());
     UnityMainThreadDispatcher.OnRefresh += HandleConnectivityRefresh;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new Dataset
 /// </summary>
 /// <param name="datasetName">The name of the dataset</param>
 /// <param name="cognitoCredentials">The Cognito Credentials associated with the dataset</param>
 /// <param name="local">Local storage, can be InMemoryStorage or SQLiteStorage or Some Custom Storage Class which implements <see cref="Amazon.CognitoSync.SyncManager.ILocalStorage"/></param>
 /// <param name="remote">Remote storage</param>
 internal Dataset(string datasetName, CognitoAWSCredentials cognitoCredentials, ILocalStorage local, IRemoteDataStorage remote)
     : this()
 {
     this._datasetName = datasetName;
     this._cognitoCredentials = cognitoCredentials;
     this._local = local;
     this._remote = remote;
     _logger = Logger.GetLogger(this.GetType());
 }