예제 #1
0
파일: MathClient.cs 프로젝트: jwatt/kythe
        public static void Main(string[] args)
        {
            GrpcEnvironment.Initialize();

            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();
        }
예제 #2
0
        public static void Main(string[] args)
        {
            GrpcEnvironment.Initialize();

            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();
        }