Exemple #1
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 2:
         if (field.Type == TType.Struct) {
           EmailConfirmation = new EmailConfirmation();
           EmailConfirmation.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Exemple #2
0
 public void send_requestEmailConfirmation(EmailConfirmation emailConfirmation)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("requestEmailConfirmation", TMessageType.Call, seqid_));
   requestEmailConfirmation_args args = new requestEmailConfirmation_args();
   args.EmailConfirmation = emailConfirmation;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Exemple #3
0
      public EmailConfirmationSession requestEmailConfirmation(EmailConfirmation emailConfirmation)
      {
        #if !SILVERLIGHT
        send_requestEmailConfirmation(emailConfirmation);
        return recv_requestEmailConfirmation();

        #else
        var asyncResult = Begin_requestEmailConfirmation(null, null, emailConfirmation);
        return End_requestEmailConfirmation(asyncResult);

        #endif
      }
Exemple #4
0
 public IAsyncResult send_requestEmailConfirmation(AsyncCallback callback, object state, EmailConfirmation emailConfirmation)
Exemple #5
0
 public IAsyncResult Begin_requestEmailConfirmation(AsyncCallback callback, object state, EmailConfirmation emailConfirmation)
 {
   return send_requestEmailConfirmation(callback, state, emailConfirmation);
 }