Esempio n. 1
0
        public async Task DataStream_Azure_EventHub__Init()
        {
            var stream = GetValidStream();

            var connector = new AzureEventHubConnector(new InstanceLogger(new Utils.LogWriter(), "HOSTID", "1234", "INSTID"));

            Assert.IsTrue((await connector.InitAsync(stream)).Successful);
        }
Esempio n. 2
0
        public async Task DataStream_Azure_EventHub__Send()
        {
            var stream = GetValidStream();

            var connector = new AzureEventHubConnector(new InstanceLogger(new Utils.LogWriter(), "HOSTID", "1234", "INSTID"));

            Assert.IsTrue((await connector.InitAsync(stream)).Successful);

            var record = await AddObject(connector, stream, "dev123", null, new KeyValuePair <string, object>("pointOne", 37.5),
                                         new KeyValuePair <string, object>("pointTwo", 58.6),
                                         new KeyValuePair <string, object>("pointThree", "testing"));
        }