private void SendWeightToEventHub(SensorReading sensorReading) { eventHubSender.Send(JsonConvert.SerializeObject(sensorReading)); }
private void UpdateWeight(object sender, SensorReading sensorReading) { SendWeightToEventHub(sensorReading); }