Beispiel #1
0
        /// <summary>
        /// 检测指定的插件服务运行状态
        /// </summary>
        /// <param name="serviceTypeName">插件名称</param>
        /// <returns>检查结果</returns>
        public ServiceState GetServiceState(string serviceTypeName)
        {
            ServiceInfo si = ServiceList.Find(s => s.TypeName == serviceTypeName);

            return(si == null ? ServiceState.NotInstalled : si.State);
        }