コード例 #1
0
 public RemoteConfigurationClient(IRemoteConfigurationSource remoteConfigSource)
 {
     _remoteConfigSource = remoteConfigSource;
     _apiClient          = HttpApiClient.Create <IConfigApi>(
         new HttpApiConfig
     {
         HttpHost = new Uri(_remoteConfigSource.Url)
     });
 }
コード例 #2
0
 public RemoteConfigurationProvider(IRemoteConfigurationSource source
                                    , IRemoteConfigurationClient remoteClient)
 {
     _remoteClient = remoteClient;
     _source       = source;
     if (_source.ReloadOnChange)
     {
         Task.Run(() => PollForChanges());
     }
 }