Exemplo n.º 1
0
        /// <summary>
        /// 获取调度服务信息
        /// </summary>
        /// <returns></returns>
        public ActionResult GetQuartzServiceInfo()
        {
            string quartzServiceInfo = ServiceControl.GetQuartzServiceInfo();
            string localHostName     = Dns.GetHostName();
            string localIp           = Globals.GetClientIp();
            string remoteHostName    = Server.MachineName;

            return(Json(new { Message = quartzServiceInfo, ErrMsg = ServiceControl.ErrMsg, RemoteHostName = remoteHostName, LocalHostName = localHostName, LocalIp = localIp }));
        }