Пример #1
0
 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);
     }
 }
Пример #2
0
 public void InternalNotificationHandler(object sender, StateMachineEventArgs intArgs)
 {
     EnterTrigger(intArgs.EventName);
     //EnterTrigger is private and called eith event handler here
 }
Пример #3
0
 public void InternalNotificationHandler(
     object sender, StateMachineEventArgs args)
 {
     EnterTrigger(args.EventName);
 }