protected void RemoveAction(IElementAction action) { if (action == null) { throw new ArgumentNullException(nameof(action)); } _actions.Remove(action); }
public void AddAction(IElementAction action) { if (action == null) { throw new ArgumentNullException(nameof(action)); } _actions.Add(action); }
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); }
public StatePlanElementStrategy(IElementAction action) { _action = action; }
protected void RemoveAction(IElementAction action) { if (action == null) throw new ArgumentNullException(nameof(action)); _actions.Remove(action); }
public void AddAction(IElementAction action) { if (action == null) throw new ArgumentNullException(nameof(action)); _actions.Add(action); }