예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var channel = new Channel("localhost", 5001, ChannelCredentials.Insecure);
            var client  = new User.UserClient(channel);
            var user    = client.Login(new LoginModel()
            {
                UserName = "", Password = "", Domain = ""
            });

            if (user != null)
            {
                UserInfo.User = user;
            }
        }