예제 #1
0
            public void send_auth(Source source, IdType idType, string username, string password)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("auth", TMessageType.Call, seqid_));
                auth_args args = new auth_args();

                args.Source   = source;
                args.IdType   = idType;
                args.Username = username;
                args.Password = password;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
예제 #2
0
            public void auth_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                auth_args args = new auth_args();

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

                try {
                    result.Success = iface_.auth(args.Source, args.IdType, args.Username, args.Password);
                } catch (com.imd.common.thrift.ThriftException e) {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("auth", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }