Exemplo n.º 1
0
        private static void InitEventConsumer()
        {
            var config = EventHubConfigSection.GetConfig();

            _eventHubConsumer = new EventHubConsumer(config, "weather");
            _eventHubConsumer.RegisterEventProcessor <SimpleEventProcessor>();
        }
Exemplo n.º 2
0
        private static void InitEventProducer()
        {
            var config = EventHubConfigSection.GetConfig();

            _eventHubProducer = new EventHubProducer(config, "weather");
        }