Ejemplo n.º 1
0
        public void Add(IRollbackAction <T> rollbackAction)
        {
            rollbackAction.ThrowIfNull(nameof(rollbackAction));

            RollbackScope.EnsureScopeIsNotDisposed(_disposed);

            _rollbackActions.Push(rollbackAction);
        }
Ejemplo n.º 2
0
        public void Add(IEnumerable <IRollbackAction <T> > rollbackActions)
        {
            rollbackActions.ThrowIfNull(nameof(rollbackActions));

            RollbackScope.EnsureScopeIsNotDisposed(_disposed);

            foreach (IRollbackAction <T> rollbackAction in rollbackActions)
            {
                _rollbackActions.Push(rollbackAction);
            }
        }