Beispiel #1
0
 public void send_reportProfile(long syncOpRevision, Profile profile)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("reportProfile", TMessageType.Call, seqid_));
   reportProfile_args args = new reportProfile_args();
   args.SyncOpRevision = syncOpRevision;
   args.Profile = profile;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Beispiel #2
0
      public void reportProfile(long syncOpRevision, Profile profile)
      {
        #if !SILVERLIGHT
        send_reportProfile(syncOpRevision, profile);
        recv_reportProfile();

        #else
        var asyncResult = Begin_reportProfile(null, null, syncOpRevision, profile);
        End_reportProfile(asyncResult);

        #endif
      }
Beispiel #3
0
 public IAsyncResult send_reportProfile(AsyncCallback callback, object state, long syncOpRevision, Profile profile)
Beispiel #4
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.I32) {
           ReqSeq = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Profile = new Profile();
           Profile.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Beispiel #5
0
 public IAsyncResult Begin_reportProfile(AsyncCallback callback, object state, long syncOpRevision, Profile profile)
 {
   return send_reportProfile(callback, state, syncOpRevision, profile);
 }
Beispiel #6
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 0:
         if (field.Type == TType.Struct) {
           Success = new Profile();
           Success.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 1:
         if (field.Type == TType.Struct) {
           E = new TalkException();
           E.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Beispiel #7
0
 public void send_updateProfile(int reqSeq, Profile profile)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("updateProfile", TMessageType.Call, seqid_));
   updateProfile_args args = new updateProfile_args();
   args.ReqSeq = reqSeq;
   args.Profile = profile;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Beispiel #8
0
 public IAsyncResult send_updateProfile(AsyncCallback callback, object state, int reqSeq, Profile profile)
Beispiel #9
0
      public void updateProfile(int reqSeq, Profile profile)
      {
        #if !SILVERLIGHT
        send_updateProfile(reqSeq, profile);
        recv_updateProfile();

        #else
        var asyncResult = Begin_updateProfile(null, null, reqSeq, profile);
        End_updateProfile(asyncResult);

        #endif
      }
Beispiel #10
0
 public IAsyncResult Begin_updateProfile(AsyncCallback callback, object state, int reqSeq, Profile profile)
 {
   return send_updateProfile(callback, state, reqSeq, profile);
 }