コード例 #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);
 }