private bool ChangeState(UnitOfWorkScopeState state) { this.EnforceNotDisposed(); if (this.State != UnitOfWorkScopeState.None) { return(false); } this.State = state; return(true); }
public UnitOfWorkResult(string scopeName, UnitOfWorkScopeState state, string rollbackReason) { this.ScopeName = scopeName; this.ScopeState = state; this.RollbackReason = rollbackReason; }