blob: c442c32193e237949f2ab548f8f1e736647fa120 [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 {
Jan Tattermusch15111f52015-02-05 18:15:14 -080015
16 MathGrpc.IMathServiceClient stub = new MathGrpc.MathServiceClientStub(channel);
Jan Tattermuscha7608b02015-02-03 17:54:38 -080017 Examples.DivExample(stub);
18
19 Examples.FibExample(stub);
20
21 Examples.SumExample(stub);
22
23 Examples.DivManyExample(stub);
24 }
25
26 GrpcEnvironment.Shutdown();
27 }
28 }
29}