src/Miles/Persistence/TransactionContextBase.cs
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Performs application - defined tasks associated with freeing releasing or resetting unmanaged resources .
public void Dispose()
        {
            if (transactionInstances != null && transactionInstances.Any())
            {
                var rollback = DoRollbackAsync();
                if (!rollback.IsCompleted)
                    rollback.RunSynchronously();
                foreach (var instance in transactionInstances)
                    instance.Completed = true;
            }
        }
public void Dispose ( ) { if ( transactionInstances != null && transactionInstances . Any ( ) ) { var rollback = DoRollbackAsync ( ) ; if ( ! rollback . IsCompleted ) rollback . RunSynchronously ( ) ; foreach ( var instance in transactionInstances ) instance . Completed = true ; } }
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Performs application - defined tasks associated with freeing releasing or resetting unmanaged resources .