public MQTTReader(string subscriberURL, ReadFinished onReadFinished, ISegmentator segmentator) { Client = new MqttClient("cloud11.dbis.rwth-aachen.de"); Client.Connect(Guid.NewGuid().ToString()); Client.MqttMsgPublishReceived += MessageArrivedSegmentedCallback; Segmentator = segmentator; Path = subscriberURL; }
public CSVReader(string address, bool hasHeader, ReadFinished onReadFinished, ISegmentator segmentator) { OnReadFinished = onReadFinished; Client = new CsvReader(File.OpenText(address), hasHeader); Segmentator = segmentator; }