/// <inheritdoc /> public async Task CommitAsync() { CheckOpenStatus(); if (DriverTransaction != null) { await DriverTransaction.CommitAsync().ConfigureAwait(false); } IsOpen = false; }
public Task SaveAsync() { try { if (transaction == null) { return(Task.FromResult(0)); } return(transaction.CommitAsync()); } catch (Exception exception) { logging.Error("Exception occured during data operation.", exception); throw; } }
public async Task CommitTransaction() { await transaction.CommitAsync(); }
public IObservable <T> Commit <T>() { return(Observable.FromAsync(() => _transaction.CommitAsync()).SelectMany(x => Observable.Empty <T>())); }