예제 #1
0
 public DeviceEventProcessorFactory(
     IEventHubStatus eventHubStatus,
     IServicesConfig servicesConfig,
     ILogger logger)
 {
     this.eventHubStatus     = eventHubStatus;
     this.checkpointTimeInMs = servicesConfig.EventHubCheckpointTimeMs;
     this.logger             = logger;
 }
 public DeviceEventProcessor(
     IEventHubStatus eventHubStatus,
     int checkpointTimeInMs,
     ILogger logger)
 {
     this.eventHubStatus      = eventHubStatus;
     this.logger              = logger;
     this.checkpointStopwatch = new Stopwatch();
     this.checkpointTimeInMs  = checkpointTimeInMs;
 }
예제 #3
0
 public Agent(
     IDeviceGroupsWriter deviceGroupsWriter,
     IDeviceGroupsClient deviceGroupsClient,
     IEventProcessorHostWrapper eventProcessorHostWrapper,
     IEventProcessorFactory deviceEventProcessorFactory,
     IEventHubStatus eventHubStatus,
     IServicesConfig servicesConfig,
     IBlobStorageConfig blobStorageConfig,
     ILogger logger,
     IThreadWrapper thread)
 {
     this.log = logger;
     this.deviceGroupsWriter          = deviceGroupsWriter;
     this.deviceGroupsClient          = deviceGroupsClient;
     this.eventProcessorHostWrapper   = eventProcessorHostWrapper;
     this.deviceEventProcessorFactory = deviceEventProcessorFactory;
     this.eventHubStatus    = eventHubStatus;
     this.servicesConfig    = servicesConfig;
     this.blobStorageConfig = blobStorageConfig;
     this.deviceGroupDefinitionDictionary = new Dictionary <string, string>();
     this.thread = thread;
 }