Exemple #1
0
            public void send_messageCount(Session session)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("messageCount", TMessageType.Call, seqid_));
                messageCount_args args = new messageCount_args();

                args.Session = session;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Exemple #2
0
            public void messageCount_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                messageCount_args args = new messageCount_args();

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

                try {
                    result.Success = iface_.messageCount(args.Session);
                } catch (NotificationException ne) {
                    result.Ne = ne;
                } catch (SessionException se) {
                    result.Se = se;
                }
                oprot.WriteMessageBegin(new TMessage("messageCount", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
 public void messageCount_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   messageCount_args args = new messageCount_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   messageCount_result result = new messageCount_result();
   try {
     result.Success = iface_.messageCount(args.Session);
   } catch (NotificationException ne) {
     result.Ne = ne;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("messageCount", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public void send_messageCount(Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("messageCount", TMessageType.Call, seqid_));
   messageCount_args args = new messageCount_args();
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }