コード例 #1
0
 public void signalView_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   signalView_args args = new signalView_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   signalView_result result = new signalView_result();
   try {
     result.Success = iface_.signalView(args.Viewer, args.TargetUser, args.GroupId, args.ViewType, args.TypeId, args.Session);
   } catch (UserException ex) {
     result.Ex = ex;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("signalView", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
コード例 #2
0
 public void send_signalView(string viewer, string targetUser, int groupId, int viewType, int typeId, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("signalView", TMessageType.Call, seqid_));
   signalView_args args = new signalView_args();
   args.Viewer = viewer;
   args.TargetUser = targetUser;
   args.GroupId = groupId;
   args.ViewType = viewType;
   args.TypeId = typeId;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }