public IEventProcessor CreateEventProcessor(PartitionContext context)
 {
     var processor = new DeviceAdministrationProcessor(_deviceLogic, _configurationProvider);
     processor.ProcessorClosed += this.ProcessorOnProcessorClosed;
     this.eventProcessors.TryAdd(context.Lease.PartitionId, processor);
     return processor;
 }
        public IEventProcessor CreateEventProcessor(PartitionContext context)
        {
            var processor = new DeviceAdministrationProcessor(_deviceLogic, _configurationProvider);

            processor.ProcessorClosed += this.ProcessorOnProcessorClosed;
            this.eventProcessors.TryAdd(context.Lease.PartitionId, processor);
            return(processor);
        }