public void InternalNotificationHandler(object sender, StateMachineEventArgs intArgs) { // Catastrophic error if (intArgs.EventName == "CompleteFailure") { this.RaiseStateMachineSystemCommand("CompleteFailure", intArgs.EventInfo + " Device : " + intArgs.Source); // stop state machine to avoid any damage this.Stop(); } // Normal operation else { this.EnterTrigger(intArgs.EventName); } }
public void InternalNotificationHandler(object sender, StateMachineEventArgs intArgs) { EnterTrigger(intArgs.EventName); //EnterTrigger is private and called eith event handler here }
public void InternalNotificationHandler( object sender, StateMachineEventArgs args) { EnterTrigger(args.EventName); }