Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 1 | using System; |
| 2 | using System.Runtime.InteropServices; |
| 3 | using Google.GRPC.Core; |
| 4 | using System.Threading; |
| 5 | using math; |
| 6 | |
| 7 | namespace 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 Tattermusch | 15111f5 | 2015-02-05 18:15:14 -0800 | [diff] [blame^] | 15 | |
| 16 | MathGrpc.IMathServiceClient stub = new MathGrpc.MathServiceClientStub(channel); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 17 | 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 | } |