예제 #1
0
            public void send_DoLogin(string userName, string password, string loginSite)
            {
                oprot_.WriteMessageBegin(new TMessage("DoLogin", TMessageType.Call, seqid_));
                DoLogin_args args = new DoLogin_args();

                args.UserName  = userName;
                args.Password  = password;
                args.LoginSite = loginSite;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
예제 #2
0
            public void DoLogin_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                DoLogin_args args = new DoLogin_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                DoLogin_result result = new DoLogin_result();

                result.Success = iface_.DoLogin(args.UserName, args.Password, args.LoginSite);
                oprot.WriteMessageBegin(new TMessage("DoLogin", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }