Beispiel #1
0
 public string recv_RegisterLogListener()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     RegisterLogListener_result result = new RegisterLogListener_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
         return result.Success;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "RegisterLogListener failed: unknown result");
 }
Beispiel #2
0
 public void RegisterLogListener_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     RegisterLogListener_args args = new RegisterLogListener_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     RegisterLogListener_result result = new RegisterLogListener_result();
     result.Success = iface_.RegisterLogListener();
     oprot.WriteMessageBegin(new TMessage("RegisterLogListener", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }