コード例 #1
0
ファイル: Program.cs プロジェクト: Mike97M/Net-Labs
        static async Task Main(string[] args)
        {
            // The port number(5001) must match the port of the gRPC server.
            using var channel = GrpcChannel.ForAddress("https://localhost:5001");
            var client = new Greeter.GreeterClient(channel);
            var reply  = await client.AddPost();

            Console.WriteLine("Post added");
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();
        }