Beispiel #1
0
        public void send_getBotUseInfo(string botMid)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("getBotUseInfo", TMessageType.Call, seqid_));
            getBotUseInfo_args args = new getBotUseInfo_args();

            args.BotMid = botMid;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }
Beispiel #2
0
        public void getBotUseInfo_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getBotUseInfo_args args = new getBotUseInfo_args();

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

            try
            {
                try
                {
                    result.Success = iface_.getBotUseInfo(args.BotMid);
                }
                catch (TalkException e)
                {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("getBotUseInfo", 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("getBotUseInfo", TMessageType.Exception, seqid));
                x.Write(oprot);
            }
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }