Beispiel #1
0
 public void send_uploadChunk(string location, byte[] chunk)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("uploadChunk", TMessageType.Call, seqid_));
   uploadChunk_args args = new uploadChunk_args();
   args.Location = location;
   args.Chunk = chunk;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Beispiel #2
0
 public void uploadChunk_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   uploadChunk_args args = new uploadChunk_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   uploadChunk_result result = new uploadChunk_result();
   try {
     iface_.uploadChunk(args.Location, args.Chunk);
   } catch (AuthorizationException aze) {
     result.Aze = aze;
   }
   oprot.WriteMessageBegin(new TMessage("uploadChunk", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }