Пример #1
0
 public EventHubFrontend(IMiddleware hostedMiddleware, EventHubFrontendConfiguration configuration)
 {
     _eventProcessorFactory = new StatsdFrontendEventProcessorFactory(hostedMiddleware, configuration);
     _eventProcessorHost = new EventProcessorHost(configuration.EventProcessorName, configuration.EventHubName, EventHubConsumerGroup.DefaultGroupName, configuration.EventHubConnectionString, configuration.StorageConnectionString);
 }
 public StatsdFrontendEventProcessorFactory(IMiddleware hostedMiddleware, EventHubFrontendConfiguration configuration)
 {
     _hostedMiddleware = hostedMiddleware;
     _configuration = configuration;
 }