注释grpc demo

This commit is contained in:
YUN-PC5\user 2023-10-17 14:01:22 +08:00
parent 10b57594ac
commit e49d007908

View File

@ -192,11 +192,11 @@ using (var serviceScope = app.Services.CreateScope())
pol.IpRules.AddRange(ipRateLimitPolicies.Adapt<List<IpRateLimitPolicy>>()); pol.IpRules.AddRange(ipRateLimitPolicies.Adapt<List<IpRateLimitPolicy>>());
await ipPolicyStore.SetAsync(optionsAccessor.Value.IpPolicyPrefix, pol); await ipPolicyStore.SetAsync(optionsAccessor.Value.IpPolicyPrefix, pol);
var greeterClient = services.GetRequiredService<Greeter.GreeterClient>(); // var greeterClient = services.GetRequiredService<Greeter.GreeterClient>();
var helloReply = await greeterClient.SayHelloAsync(new HelloRequest // var helloReply = await greeterClient.SayHelloAsync(new HelloRequest
{ // {
Name = "gree" // Name = "gree"
}); // });
// Console.WriteLine(helloReply); // Console.WriteLine(helloReply);
} }