Exemplo n.º 1
0
 public void send_enqueue(string topic, QueueRequest req)
 {
   oprot_.WriteMessageBegin(new TMessage("enqueue", TMessageType.Call, seqid_));
   enqueue_args args = new enqueue_args();
   args.Topic = topic;
   args.Req = req;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   oprot_.Transport.Flush();
 }
Exemplo n.º 2
0
            public void send_enqueue(string topic, QueueRequest req)
            {
                oprot_.WriteMessageBegin(new TMessage("enqueue", TMessageType.Call, seqid_));
                enqueue_args args = new enqueue_args();

                args.Topic = topic;
                args.Req   = req;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
Exemplo n.º 3
0
            public void enqueue_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                enqueue_args args = new enqueue_args();

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

                result.Success = iface_.enqueue(args.Topic, args.Req);
                oprot.WriteMessageBegin(new TMessage("enqueue", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Exemplo n.º 4
0
 public void enqueue_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   enqueue_args args = new enqueue_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   enqueue_result result = new enqueue_result();
   result.Success = iface_.enqueue(args.Topic, args.Req);
   oprot.WriteMessageBegin(new TMessage("enqueue", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }