public MicroserviceService(ILogger <MicroserviceService> logger, IServiceProvider serviceProvider, IMetricsCollectionService metricsCollection) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); this.metricsCollection = metricsCollection ?? throw new ArgumentNullException(nameof(metricsCollection)); }
public MetricCollectionController(IMetricRepository metricRepository, IMetricsCollectionService metricsCollectionService) { this.metricRepository = metricRepository; this.metricsCollectionService = metricsCollectionService; }