예제 #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)
                        {
                            PopulationInfo = new CPopulationInfo();
                            PopulationInfo.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
예제 #2
0
     public CPopulationFitness calculateXorPopulationFitness(CPopulationInfo populationInfo)
     {
 #if !SILVERLIGHT
         send_calculateXorPopulationFitness(populationInfo);
         return(recv_calculateXorPopulationFitness());
 #else
         var asyncResult = Begin_calculateXorPopulationFitness(null, null, populationInfo);
         return(End_calculateXorPopulationFitness(asyncResult));
 #endif
     }
      public CPopulationFitness calculateXorPopulationFitness(CPopulationInfo populationInfo)
      {
        #if !SILVERLIGHT
        send_calculateXorPopulationFitness(populationInfo);
        return recv_calculateXorPopulationFitness();

        #else
        var asyncResult = Begin_calculateXorPopulationFitness(null, null, populationInfo);
        return End_calculateXorPopulationFitness(asyncResult);

        #endif
      }
예제 #4
0
            public void send_calculateSimPopulationFitness(CPopulationInfo populationInfo)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("calculateSimPopulationFitness", TMessageType.Call, seqid_));
                calculateSimPopulationFitness_args args = new calculateSimPopulationFitness_args();

                args.PopulationInfo = populationInfo;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
예제 #5
0
 public IAsyncResult send_calculateXorPopulationFitness(AsyncCallback callback, object state, CPopulationInfo populationInfo)
예제 #6
0
 public IAsyncResult Begin_calculateXorPopulationFitness(AsyncCallback callback, object state, CPopulationInfo populationInfo)
 {
     return(send_calculateXorPopulationFitness(callback, state, populationInfo));
 }
 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) {
           PopulationInfo = new CPopulationInfo();
           PopulationInfo.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
 public void send_calculateXorPopulationFitness(CPopulationInfo populationInfo)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("calculateXorPopulationFitness", TMessageType.Call, seqid_));
   calculateXorPopulationFitness_args args = new calculateXorPopulationFitness_args();
   args.PopulationInfo = populationInfo;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
 public IAsyncResult send_calculateXorPopulationFitness(AsyncCallback callback, object state, CPopulationInfo populationInfo)
 public IAsyncResult Begin_calculateXorPopulationFitness(AsyncCallback callback, object state, CPopulationInfo populationInfo)
 {
   return send_calculateXorPopulationFitness(callback, state, populationInfo);
 }