private void button3_Click(object sender, EventArgs e) { if (UserInfo.User != null) { var channel = new Channel("localhost", 5001, ChannelCredentials.Insecure); var client = new User.UserClient(channel); var re = client.Logout(new LogoutModel()); } }