Exemple #1
0
        private bool ChangeState(UnitOfWorkScopeState state)
        {
            this.EnforceNotDisposed();
            if (this.State != UnitOfWorkScopeState.None)
            {
                return(false);
            }

            this.State = state;
            return(true);
        }
Exemple #2
0
 public UnitOfWorkResult(string scopeName, UnitOfWorkScopeState state, string rollbackReason)
 {
     this.ScopeName      = scopeName;
     this.ScopeState     = state;
     this.RollbackReason = rollbackReason;
 }