Exemplo n.º 1
0
 public void sendEvent_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   sendEvent_args args = new sendEvent_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   sendEvent_result result = new sendEvent_result();
   try {
     result.Success = iface_.sendEvent(args.Seq, args.Message);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("sendEvent", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public void send_sendEvent(int seq, Message message)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("sendEvent", TMessageType.Call, seqid_));
   sendEvent_args args = new sendEvent_args();
   args.Seq = seq;
   args.Message = message;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }