Beispiel #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.String) {
           Id = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Options = new GetInfoOptions();
           Options.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Beispiel #2
0
 public void send_getTopologyInfoWithOpts(string id, GetInfoOptions options)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getTopologyInfoWithOpts", TMessageType.Call, seqid_));
   getTopologyInfoWithOpts_args args = new getTopologyInfoWithOpts_args();
   args.Id = id;
   args.Options = options;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Beispiel #3
0
    public TopologyInfo getTopologyInfoWithOpts(string id, GetInfoOptions options)
    {
      #if !SILVERLIGHT
      send_getTopologyInfoWithOpts(id, options);
      return recv_getTopologyInfoWithOpts();

      #else
      var asyncResult = Begin_getTopologyInfoWithOpts(null, null, id, options);
      return End_getTopologyInfoWithOpts(asyncResult);

      #endif
    }
Beispiel #4
0
 public IAsyncResult send_getTopologyInfoWithOpts(AsyncCallback callback, object state, string id, GetInfoOptions options)
Beispiel #5
0
 public IAsyncResult Begin_getTopologyInfoWithOpts(AsyncCallback callback, object state, string id, GetInfoOptions options)
 {
   return send_getTopologyInfoWithOpts(callback, state, id, options);
 }