예제 #1
0
        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));
        }
예제 #2
0
 public IConfigService CreateService(MockHttpMessageHandler handler)
 {
     return(new NacosConfigService(_config, FakeHttpClientFactory.Create(handler.ToHttpClient())));
 }
예제 #3
0
 private IHttpAgent CreateAgent()
 {
     return(new ServerHttpAgent(_config, new FastHttp(FakeHttpClientFactory.Create(_mockHttp.ToHttpClient()), _config)));
 }