aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/MathClient/MathClient.cs
blob: 45222abb79b07045c621447894c5777136a04097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Runtime.InteropServices;
using Google.GRPC.Core;
using System.Threading;

namespace math
{
	class MathClient
    {
		public static void Main (string[] args)
		{
			using (Channel channel = new Channel("127.0.0.1:23456"))
			{
				MathGrpc.IMathServiceClient stub = new MathGrpc.MathServiceClientStub(channel);
				MathExamples.DivExample(stub);

                MathExamples.FibExample(stub);

				MathExamples.SumExample(stub);

				MathExamples.DivManyExample(stub);
			}
           
            GrpcEnvironment.Shutdown();
		}
	}
}