Пример #1
0
 public void setNotificationsEnabled_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   setNotificationsEnabled_args args = new setNotificationsEnabled_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   setNotificationsEnabled_result result = new setNotificationsEnabled_result();
   try {
     iface_.setNotificationsEnabled(args.ReqSeq, args.Type, args.Target, args.Enablement);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("setNotificationsEnabled", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Пример #2
0
 public void send_setNotificationsEnabled(int reqSeq, MIDType type, string target, bool enablement)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("setNotificationsEnabled", TMessageType.Call, seqid_));
   setNotificationsEnabled_args args = new setNotificationsEnabled_args();
   args.ReqSeq = reqSeq;
   args.Type = type;
   args.Target = target;
   args.Enablement = enablement;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }