Пример #1
0
        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;
        }
Пример #2
0
 public CSVReader(string address, bool hasHeader, ReadFinished onReadFinished, ISegmentator segmentator)
 {
     OnReadFinished = onReadFinished;
     Client         = new CsvReader(File.OpenText(address), hasHeader);
     Segmentator    = segmentator;
 }