예제 #1
0
        public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            ping_args args = new ping_args();

            args.Read(iprot);
            iprot.ReadMessageEnd();
            ping_result result = new ping_result();

            try
            {
                iface_.ping();
                oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid));
                result.Write(oprot);
            }
            catch (TTransportException)
            {
                throw;
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine("Error occurred in processor:");
                Console.Error.WriteLine(ex.ToString());
                TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error.");
                oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Exception, seqid));
                x.Write(oprot);
            }
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
예제 #2
0
파일: Ping.cs 프로젝트: Cloudxtreme/doc-2
            public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                ping_args args = new ping_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                ping_result result = new ping_result();

                iface_.ping();
                oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
 public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   ping_args args = new ping_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   ping_result result = new ping_result();
   iface_.ping();
   oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #4
0
 public void ping_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   ping_args args = new ping_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   ping_result result = new ping_result();
   try {
     result.Success = iface_.ping(args.AuthString);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   }
   oprot.WriteMessageBegin(new TMessage("ping", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }