Exemplo n.º 1
0
 public QueryService(
     GitHubVulnerabilities2DbConfiguration configuration,
     HttpClient client)
 {
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _client        = client ?? throw new ArgumentNullException(nameof(client));
 }
Exemplo n.º 2
0
 public QueryServiceFacts()
 {
     _configuration = new GitHubVulnerabilities2DbConfiguration();
     _handler       = new QueryServiceHttpClientHandler();
     _service       = new QueryService(
         _configuration, new HttpClient(_handler));
 }