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 | { |
| 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 | } |