public ClientWorker CreateWorker(MockHttpMessageHandler handler) { _httpAgent = new ServerHttpAgent(_config, new FastHttp(FakeHttpClientFactory.Create(handler.ToHttpClient()), _config)); _filter = new ConfigFilterChainManager(); _localConfigInfoProcessor = new LocalConfigInfoProcessor(_config.LocalFileRoot); return(new ClientWorker(_config, _httpAgent, _filter, _localConfigInfoProcessor)); }
public IConfigService CreateService(MockHttpMessageHandler handler) { return(new NacosConfigService(_config, FakeHttpClientFactory.Create(handler.ToHttpClient()))); }
private IHttpAgent CreateAgent() { return(new ServerHttpAgent(_config, new FastHttp(FakeHttpClientFactory.Create(_mockHttp.ToHttpClient()), _config))); }