blob: 258762dbb99d39440eb3806a503a50b29def85dd [file] [log] [blame]
Jan Tattermuscha7608b02015-02-03 17:54:38 -08001using System;
2using System.Runtime.InteropServices;
3using Google.GRPC.Core;
4using System.Threading;
5using math;
6
7namespace Google.GRPC.Demo
8{
9 class MainClass
10 {
11 public static void Main (string[] args)
12 {
13 using (Channel channel = new Channel("127.0.0.1:23456"))
14 {
15 IMathServiceClient stub = new MathServiceClientStub(channel, Timeout.InfiniteTimeSpan);
16 Examples.DivExample(stub);
17
18 Examples.FibExample(stub);
19
20 Examples.SumExample(stub);
21
22 Examples.DivManyExample(stub);
23 }
24
25 GrpcEnvironment.Shutdown();
26 }
27 }
28}