/// <summary> /// Initializes a new instance of the <see cref="MonitorConfigurationManager" /> class. /// </summary> /// <param name="connectionInfo">The connection information for the endpoint being used.</param> /// <param name="httpClient">The HTTP client.</param> /// <param name="metricReader">The metric reader.</param> internal MonitorConfigurationManager(ConnectionInfo connectionInfo, HttpClient httpClient, IMetricReader metricReader) { this.connectionInfo = connectionInfo; this.metricUrlPrefix = this.connectionInfo.GetAuthRelativeUrl(MetricsServerRelativeUris.ConfigRelativeUrl); this.httpClient = httpClient; this.metricReader = metricReader; }
public MetricsController(IMetricReader metricReader) { _metricReader = metricReader ?? throw new ArgumentNullException(nameof(metricReader)); }