Exemple #1
0
 // this ctor will mainly be used for testing
 // since we can mock the httpClient
 public Conjur(Configuration config, HttpClient httpClient)
 {
     _config        = config;
     _conjurService = new ConjurService(_config, httpClient);
 }
Exemple #2
0
 public Conjur()
 {
     _config        = Configuration.FromEnvironment();
     _conjurService = new ConjurService(_config, getDefaultHttpClient(_config));
 }