/// <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;
 }
Ejemplo n.º 2
0
 public MetricsController(IMetricReader metricReader)
 {
     _metricReader = metricReader ?? throw new ArgumentNullException(nameof(metricReader));
 }