private void MessageArrivedSegmentedCallback(object sender, MqttMsgPublishEventArgs e) { if (Segmentator.Push(Array.ConvertAll(e.Message.ToString().Split(','), double.Parse)) == true) { OnReadFinished(Segmentator.Window); } }
public override void Start() { if (Segmentator == null) { OnReadFinished(Client.GetRecords <double[]>().ToList <double[]>()); } else { while (Client.Read()) { if (Segmentator.Push(Client.GetRecord <double[]>()) == true) { OnReadFinished(Segmentator.Window); } } } }