Пример #1
0
 public IAsyncResult send_login(AsyncCallback callback, object state, AuthenticationRequest auth_request)
Пример #2
0
 public void send_login(AuthenticationRequest auth_request)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("login", TMessageType.Call, seqid_));
   login_args args = new login_args();
   args.Auth_request = auth_request;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Пример #3
0
      public void login(AuthenticationRequest auth_request)
      {
        #if !SILVERLIGHT
        send_login(auth_request);
        recv_login();

        #else
        var asyncResult = Begin_login(null, null, auth_request);
        End_login(asyncResult);

        #endif
      }
Пример #4
0
 public IAsyncResult Begin_login(AsyncCallback callback, object state, AuthenticationRequest auth_request)
 {
   return send_login(callback, state, auth_request);
 }
Пример #5
0
 public void Read (TProtocol iprot)
 {
   bool isset_auth_request = false;
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Struct) {
           Auth_request = new AuthenticationRequest();
           Auth_request.Read(iprot);
           isset_auth_request = true;
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
   if (!isset_auth_request)
     throw new TProtocolException(TProtocolException.INVALID_DATA);
 }
Пример #6
0
 public login_args(AuthenticationRequest auth_request) : this() {
   this.Auth_request = auth_request;
 }
Пример #7
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Struct) {
           Auth_request = new AuthenticationRequest();
           Auth_request.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }