public Task RefreshSettingsDataContext() { lock (_lock) { return StorageHelper.Load<SettingsDataContext>(SettingsStorageFilename) .ContinueWith(t => SettingsDataContext = t.Result); } }
public Task RefreshSettingsDataContext() { lock (_lock) { return(StorageHelper.Load <SettingsDataContext>(SettingsStorageFilename) .ContinueWith(t => SettingsDataContext = t.Result)); } }
public Task<bool> Rollback() { lock (_lock) { if (!IsTransactionActive) return Task.FromResult(false); return StorageHelper.Load<SettingsDataContext>(RestoreSettingsStorageFilename) .ContinueWith(t => SettingsDataContext = t.Result) .ContinueWith(t => IsTransactionActive = false); } }
public Task <bool> Rollback() { lock (_lock) { if (!IsTransactionActive) { return(Task.FromResult(false)); } return(StorageHelper.Load <SettingsDataContext>(RestoreSettingsStorageFilename) .ContinueWith(t => SettingsDataContext = t.Result) .ContinueWith(t => IsTransactionActive = false)); } }