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 (context != null)
                {
                    if (!Completed)
                    {
                        var rollback = context.DoNestedRollbackAsync(this);
                        if (!rollback.IsCompleted)
                            rollback.RunSynchronously();
                        Completed = true;
                    }
                    context.transactionInstances.Remove(this);  
                }
            }
public void Dispose ( ) { if ( context != null ) { if ( ! Completed ) { var rollback = context . DoNestedRollbackAsync ( this ) ; if ( ! rollback . IsCompleted ) rollback . RunSynchronously ( ) ; Completed = true ; } context . transactionInstances . Remove ( this ) ; } }
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Performs application - defined tasks associated with freeing releasing or resetting unmanaged resources .
// Manually rolledback or committed // Perform rollback logic synchronously // unregister instance