コード例 #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 1:
         if (field.Type == TType.Struct) {
           BookingParams = new BookingParams();
           BookingParams.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #2
0
 public void send_submitBooking(BookingParams bookingParams)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("submitBooking", TMessageType.Call, seqid_));
   submitBooking_args args = new submitBooking_args();
   args.BookingParams = bookingParams;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
コード例 #3
0
      public long submitBooking(BookingParams bookingParams)
      {
        #if !SILVERLIGHT
        send_submitBooking(bookingParams);
        return recv_submitBooking();

        #else
        var asyncResult = Begin_submitBooking(null, null, bookingParams);
        return End_submitBooking(asyncResult);

        #endif
      }
コード例 #4
0
 public IAsyncResult send_submitBooking(AsyncCallback callback, object state, BookingParams bookingParams)
コード例 #5
0
 public IAsyncResult Begin_submitBooking(AsyncCallback callback, object state, BookingParams bookingParams)
 {
   return send_submitBooking(callback, state, bookingParams);
 }