public void AddGroup(IStateGroup <TState> group) { if (group == null) { throw new ArgumentNullException(nameof(group)); } this.groups.Add(group); }
public InternalTransitionFaultException(IState from, IState to, IEvent @event, FaultedComponent faultedComponent, Exception innerException, IStateGroup group = null) : base("A transition threw an exception", innerException) { this.From = from; this.To = to; this.Event = @event; this.FaultedComponent = faultedComponent; this.Group = group; }
public InternalTransitionFaultException(IState from, IState to, IEvent @event, FaultedComponent faultedComponent, Exception innerException, IStateGroup group = null) : base("A transition threw an exception", innerException) { this.From = from; this.To = to; this.Event = @event; this.FaultedComponent = faultedComponent; this.Group = group; }
internal StateMachineFaultInfo(IStateMachine stateMachine, FaultedComponent faultedComponent, Exception exception, IState from, IState to, IEvent @event, IStateGroup group = null) { this.StateMachine = stateMachine; this.FaultedComponent = faultedComponent; this.Exception = exception; this.From = from; this.To = to; this.Event = @event; this.Group = group; }
internal StateMachineFaultInfo(IStateMachine stateMachine, FaultedComponent faultedComponent, Exception exception, IState from, IState to, IEvent @event, IStateGroup group = null) { this.StateMachine = stateMachine; this.FaultedComponent = faultedComponent; this.Exception = exception; this.From = from; this.To = to; this.Event = @event; this.Group = group; }