Ejemplo n.º 1
0
 /// <summary>
 /// Creates an HttpClient to access New Relic rest API in strongly typed manner
 /// </summary>
 /// <param name="configuration"></param>
 public NewRelicAccessor(NewRelicConfiguration configuration, IApiCommandBuilder apiCommandBuilder)
 {
     newRelicConnector      = new NewRelicConnector(configuration);
     this.apiCommandBuilder = apiCommandBuilder;
 }
 /// <summary>
 /// Creates httpclient to access new relic api with domain url already built-in
 /// </summary>
 /// <param name="config"></param>
 public NewRelicConnector(NewRelicConfiguration config)
 {
     httpClient        = new HttpClient();
     newRelicApiKey    = config.ApiKey;
     newRelicDomainUrl = RestApiConstants.NewRelicHttpsUrl;
 }