public SpyStoreServiceWrapper(HttpClient client, IOptionsMonitor <ServiceSettings> settings)
 {
     _client             = client;
     _settings           = settings.CurrentValue;
     _client.BaseAddress = new Uri(_settings.Uri);
 }
Exemple #2
0
 public SpyStoreServiceWrapper(HttpClient client, IOptionsSnapshot <ServiceSettings> settings)
 {
     _client             = client;
     _settings           = settings.Value;
     _client.BaseAddress = new Uri(_settings.Uri);
 }