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 MetricSystemManagerAgentLogic( IQueuingConfiguration queuingConfiguration, IEventSourceService eventSourceService, IConfigurationRepository configurationRepository, ILogger logger, IAgentService agentService, IAgentRepository agentRepository, IEventOrphanService eventOrphanService, IMetricManagerStatsRepository metricManagerStatsRepository) { this.queuingConfiguration = queuingConfiguration; this.eventSourceService = eventSourceService; this.configurationRepository = configurationRepository; this.logger = logger.WithClassName().WithCategory(Names.LogCategory.System); this.agentService = agentService; this.agentRepository = agentRepository; this.eventOrphanService = eventOrphanService; this.metricManagerStatsRepository = metricManagerStatsRepository; }