Ejemplo n.º 1
0
        protected void RemoveAction(IElementAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }

            _actions.Remove(action);
        }
Ejemplo n.º 2
0
        public void AddAction(IElementAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }

            _actions.Add(action);
        }
Ejemplo n.º 3
0
        internal static ElementActionState Create(IElementAction elementAction)
        {
            if (elementAction == null)
            {
                throw new ArgumentNullException("elementAction");
            }
            var data = new ElementActionState(elementAction.Id)
            {
                ActionId  = elementAction.ActionId,
                ElementId = elementAction.ElementId,
                IsAllowed = elementAction.IsAllowed,
                IsAudit   = elementAction.IsAudit
            };

            return(data);
        }
Ejemplo n.º 4
0
 public StatePlanElementStrategy(IElementAction action)
 {
     _action = action;
 }
Ejemplo n.º 5
0
        protected void RemoveAction(IElementAction action)
        {
            if (action == null) throw new ArgumentNullException(nameof(action));

            _actions.Remove(action);
        }
Ejemplo n.º 6
0
        public void AddAction(IElementAction action)
        {
            if (action == null) throw new ArgumentNullException(nameof(action));

            _actions.Add(action);
        }