示例#1
0
 /// <summary>
 /// Detect power off
 /// </summary>
 public override bool Visit(GlobalPowerOff msg, Master data)
 {
     stateDispatcher.PostAction(() => data.cs.Power.Actual = false);
     return(true);
 }
示例#2
0
 /// <summary>
 /// Detect power off
 /// </summary>
 public override bool Visit(GlobalPowerOff msg, Client data)
 {
     data.Reset();
     stateDispatcher.PostAction(() => data.cs.Power.Actual = false);
     return(true);
 }
 public virtual TReturn Visit(GlobalPowerOff msg, TData data)
 {
     return(default(TReturn));
 }