Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public MetricCollectionController(IMetricRepository metricRepository, IMetricsCollectionService metricsCollectionService)
 {
     this.metricRepository         = metricRepository;
     this.metricsCollectionService = metricsCollectionService;
 }