示例#1
0
文件: Database.cs 项目: nihilus/idaas
 public void send_storeEnum(ida_enum _enum)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("storeEnum", TMessageType.Call, seqid_));
   storeEnum_args args = new storeEnum_args();
   args._enum = _enum;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
示例#2
0
文件: Database.cs 项目: nihilus/idaas
 public IAsyncResult send_storeEnum(AsyncCallback callback, object state, ida_enum _enum)
示例#3
0
文件: Database.cs 项目: nihilus/idaas
      public bool storeEnum(ida_enum _enum)
      {
        #if !SILVERLIGHT
        send_storeEnum(_enum);
        return recv_storeEnum();

        #else
        var asyncResult = Begin_storeEnum(null, null, _enum);
        return End_storeEnum(asyncResult);

        #endif
      }
示例#4
0
文件: Database.cs 项目: nihilus/idaas
 public IAsyncResult Begin_storeEnum(AsyncCallback callback, object state, ida_enum _enum)
 {
   return send_storeEnum(callback, state, _enum);
 }
示例#5
0
文件: Database.cs 项目: nihilus/idaas
 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.List) {
           {
             Enums = new List<ida_enum>();
             TList _list36 = iprot.ReadListBegin();
             for( int _i37 = 0; _i37 < _list36.Count; ++_i37)
             {
               ida_enum _elem38 = new ida_enum();
               _elem38 = new ida_enum();
               _elem38.Read(iprot);
               Enums.Add(_elem38);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
示例#6
0
文件: Database.cs 项目: nihilus/idaas
 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) {
           _enum = new ida_enum();
           _enum.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }