diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2015-08-26 08:50:19 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2015-08-26 08:50:19 -0700 |
commit | 0608a00b505fe43a52614ec8703bb589332af064 (patch) | |
tree | 72937fe6fb2423e52134af3ce2a4beea73da69d3 /src/csharp/Grpc.Examples.MathClient | |
parent | d8fc8606740416b1cbe4d2f3754705b108fd2c5c (diff) | |
parent | afbbaf9c3e21b6a4fe41242df9d052e077dc25c0 (diff) |
Merge remote-tracking branch 'upstream/master' into csharp_upgrade_to_proto3
Conflicts:
src/csharp/Grpc.IntegrationTesting/InteropClient.cs
Diffstat (limited to 'src/csharp/Grpc.Examples.MathClient')
-rw-r--r-- | src/csharp/Grpc.Examples.MathClient/MathClient.cs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/csharp/Grpc.Examples.MathClient/MathClient.cs b/src/csharp/Grpc.Examples.MathClient/MathClient.cs index 0df14984cb..01e4a80bab 100644 --- a/src/csharp/Grpc.Examples.MathClient/MathClient.cs +++ b/src/csharp/Grpc.Examples.MathClient/MathClient.cs @@ -39,23 +39,21 @@ namespace Math { public static void Main(string[] args) { - using (Channel channel = new Channel("127.0.0.1", 23456, Credentials.Insecure)) - { - Math.IMathClient client = new Math.MathClient(channel); - MathExamples.DivExample(client); + var channel = new Channel("127.0.0.1", 23456, Credentials.Insecure); + Math.IMathClient client = new Math.MathClient(channel); + MathExamples.DivExample(client); - MathExamples.DivAsyncExample(client).Wait(); + MathExamples.DivAsyncExample(client).Wait(); - MathExamples.FibExample(client).Wait(); + MathExamples.FibExample(client).Wait(); - MathExamples.SumExample(client).Wait(); + MathExamples.SumExample(client).Wait(); - MathExamples.DivManyExample(client).Wait(); + MathExamples.DivManyExample(client).Wait(); - MathExamples.DependendRequestsExample(client).Wait(); - } + MathExamples.DependendRequestsExample(client).Wait(); - GrpcEnvironment.Shutdown(); + channel.ShutdownAsync().Wait(); } } } |