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