public ThriftResponse Invoke(ThriftRequest request)
     {
 #if !SILVERLIGHT
         send_Invoke(request);
         return(recv_Invoke());
 #else
         var asyncResult = Begin_Invoke(null, null, request);
         return(End_Invoke(asyncResult));
 #endif
     }
            public void send_Invoke(ThriftRequest request)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("Invoke", TMessageType.Call, seqid_));
                Invoke_args args = new Invoke_args();

                args.Request = request;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
            public void Read(TProtocol iprot)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    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)
                            {
                                Request = new ThriftRequest();
                                Request.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                        }
                        iprot.ReadFieldEnd();
                    }
                    iprot.ReadStructEnd();
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }
 public IAsyncResult Begin_Invoke(AsyncCallback callback, object state, ThriftRequest request)
 {
     return(send_Invoke(callback, state, request));
 }
 public IAsyncResult send_Invoke(AsyncCallback callback, object state, ThriftRequest request)