コード例 #1
0
        public Mahasiswa DetailMahasiswa(string nim)
        {
            Mahasiswa Res = new Mahasiswa();

            using var channel = GrpcChannel.ForAddress("http://localhost:5001");
            var client = new Greeter.GreeterClient(channel);
            ID  id     = new ID();

            id.Id = nim;
            var reply = client.DetailMahasiswa(id);

            Res = reply;

            return(Res);
        }