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