Пример #1
0
 public virtual IEnumerator <ITask> GenericReplaceHandler(pxbattery.Replace replace)
 {
     _state.CopyFrom(replace.Body);
     replace.ResponsePort.Post(DefaultReplaceResponseType.Instance);
     yield break;
 }
Пример #2
0
 public IEnumerator <ITask> ReplaceHandler(battery.Replace replace)
 {
     throw new InvalidOperationException("The LEGO NXT Battery sensor data can not be updated from outside the service");
 }
Пример #3
0
 public void ReplaceHandler(battery.Replace replace)
 {
     this.batteryState = replace.Body;
     replace.ResponsePort.Post(DefaultReplaceResponseType.Instance);
     SendNotification(this.batterySubMgr, replace);
 }