/// <inheritdoc />
        public async Task CommitAsync()
        {
            CheckOpenStatus();

            if (DriverTransaction != null)
            {
                await DriverTransaction.CommitAsync().ConfigureAwait(false);
            }


            IsOpen = false;
        }
Beispiel #2
0
        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();
 }
Beispiel #4
0
 public IObservable <T> Commit <T>()
 {
     return(Observable.FromAsync(() => _transaction.CommitAsync()).SelectMany(x => Observable.Empty <T>()));
 }