public virtual IEnumerator <ITask> SetSingleHandler(SetSingle request) { //error check if (request.Body.Which >= _state.LEDs[0].LEDVec.Count || request.Body.Which < 0) { LogError("Improper LED Identifier"); request.ResponsePort.Post(new Fault()); yield break; } //update our state _state.LEDs[0].LEDVec[request.Body.Which].State = request.Body.State; _state.LEDs[0].LEDVec[request.Body.Which].TimeStamp = DateTime.Now; //send message to brick service brick.SetLedBody setSingle = new brick.SetLedBody(); setSingle.LED = request.Body.Which; setSingle.State = request.Body.State; _scribblerPort.SetLED(setSingle); request.ResponsePort.Post(DefaultUpdateResponseType.Instance); yield break; }
public virtual IEnumerator <ITask> SetSingleHandler(SetSingle get) { throw new NotImplementedException(); }