Ejemplo n.º 1
0
 public MetricSystemWorkerAgentLogic(
     IKernel kernel,
     IQueuingConfiguration queuingConfiguration,
     IEventWorkerService eventWorkerService,
     IEventOrphanService eventOrphanService,
     ILogger logger)
 {
     this.kernel = kernel;
     this.queuingConfiguration = queuingConfiguration;
     this.eventWorkerService   = eventWorkerService;
     this.eventOrphanService   = eventOrphanService;
     this.logger = logger.WithTypeName(this);  //.WithClassName(); -- doesn't work
 }
 public EventHandler(
     IEventTaskFactory eventTaskFactory,
     IEventRepository eventRepository,
     IEventLockRepository eventLockRepository,
     IEventWorkerService eventWorkerService,
     IEventChildKernelFactory eventChildKernelFactory,
     ILogger logger)
 {
     this.eventTaskFactory        = eventTaskFactory;
     this.eventRepository         = eventRepository;
     this.eventLockRepository     = eventLockRepository;
     this.eventWorkerService      = eventWorkerService;
     this.eventChildKernelFactory = eventChildKernelFactory;
     this.logger = logger.WithClassName().WithCategory(Names.LogCategory.Event);
 }