注释grpc demo
This commit is contained in:
parent
10b57594ac
commit
e49d007908
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user