public void ProcessPacket(HRMPacket packet) { try { lastPacket = packet; bus.Publish(packet); logger.Debug(string.Format("published message {0}", packet.ToString())); System.Console.WriteLine(string.Format("published message {0}", packet.ToString())); var status = new HRMStatus(this, packet); bus.Publish(status); logger.Debug(string.Format("published message {0}", status.ToString())); System.Console.WriteLine(string.Format("published message {0}", status.ToString())); this.packetCreated.OnNext(packet); } catch (Exception exception) { this.packetCreated.OnError(exception); } }
private static void HandleStatusMessage(HRMStatus obj) { throw new NotImplementedException(); }