public void Dispose()
{
if (this.disposed)
{
return;
}
if (!this.isCompleted)
{
this.transactionManager.RollbackTransaction(this.transaction);
}
this.transaction.Dispose();
this.transaction = null;
this.transactionManager = null;
this.disposed = true;
}