MobileMQController.cs 549 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using Bowin.Common.Mobile;
  7. namespace EMIS.Web.ServiceControllers
  8. {
  9. public class MobileMQController : Controller
  10. {
  11. public ActionResult Regist(string key, string address, int port)
  12. {
  13. MobileMQ.Regist(key, address, port);
  14. return Json(true);
  15. }
  16. public ActionResult Remove(string key)
  17. {
  18. MobileMQ.Remove(key);
  19. return Json(true);
  20. }
  21. }
  22. }