Example #1
0
            public void Send_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                Send_args args = new Send_args();

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

                try
                {
                    TSocket t = (TSocket)iprot.Transport;
                    result.Success = iface_.Send(args.My_args, t.TcpClient.Client.RemoteEndPoint.ToString());
                    oprot.WriteMessageBegin(new TMessage("Send", TMessageType.Reply, seqid));
                    result.Write(oprot);
                }
                catch (TTransportException ttx)
                {
                    logger.LogError(ttx, "GrantService.Send_Process.ttx.Error");
                }
                catch (Exception ex)
                {
                    logger.LogError(ex, "GrantService.Send_Process.ex.Error");
                    TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error.");
                    oprot.WriteMessageBegin(new TMessage("Send", TMessageType.Exception, seqid));
                    x.Write(oprot);
                }
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
            public void Send_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                Send_args args = new Send_args();

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

                result.Success = iface_.Send(args.Message);
                oprot.WriteMessageBegin(new TMessage("Send", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
            public void send_Send(ThriftMessage message)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("Send", TMessageType.Call, seqid_));
                Send_args args = new Send_args();

                args.Message = message;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
 public void Send_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   Send_args args = new Send_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   Send_result result = new Send_result();
   result.Success = iface_.Send(args.Message);
   oprot.WriteMessageBegin(new TMessage("Send", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public void send_Send(ThriftMessage message)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("Send", TMessageType.Call, seqid_));
   Send_args args = new Send_args();
   args.Message = message;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }