Skip to content

Commit 5a76e80

Browse files
author
liguoliang
committed
修改demo
1 parent 2e4ce2c commit 5a76e80

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

demo/Test.Client/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ static async Task Main(string[] args)
2727
IServiceCollection services = new ServiceCollection();
2828
services.AddLogging()
2929
//单机版Httpclient配置
30-
.AddHttpClient(TestServerName, client => { client.BaseAddress = new Uri("http://localhost:34047/Test.Server6"); })
30+
.AddHttpClient(TestServerName, client => { client.BaseAddress = new Uri("http://localhost:34047"); })
3131
.AddDotNetCoreRpcClient(options => {
32+
options.Path = "/Test.Server6";
3233
options.AddRpcClient<IPersonService>().AddRpcClient<IProductService>();
3334
});
3435
//基于Nacos注册中心

0 commit comments

Comments
 (0)