Example #1
0
        public static void ExitRoute()
        {
            if (IsStartRoute == false)
            {
                return;
            }
            IsStartRoute = false;//设置为开启

            WcfGlobal.Quit(StartType.RouterBaseService);
            WcfGlobal.Quit(StartType.RouterFileService);
        }
Example #2
0
 public static void Exit()
 {
     WcfGlobal.Quit(StartType.PublishService);
     WcfGlobal.Quit(StartType.MiddlewareTask);
     WcfGlobal.Quit(StartType.SuperClient);
     WcfGlobal.Quit(StartType.BaseService);
     WcfGlobal.Quit(StartType.FileService);
     WcfGlobal.Quit(StartType.RouterBaseService);
     WcfGlobal.Quit(StartType.RouterFileService);
     WcfGlobal.Quit(StartType.MongoDB);
     WcfGlobal.Quit(StartType.Nginx);
 }
Example #3
0
        public static void ExitBase()
        {
            if (IsStartBase == false)
            {
                return;
            }
            IsStartBase = false;//设置为开启

            MiddlewareLogHelper.WriterLog(LogType.MidLog, true, Color.Red, "正在准备关闭中间件服务,请等待...");
            ClientLinkManage.UnAllConnection();//关闭所有连接

            WcfGlobal.Quit(StartType.MiddlewareTask);
            WcfGlobal.Quit(StartType.SuperClient);
            WcfGlobal.Quit(StartType.BaseService);
            WcfGlobal.Quit(StartType.FileService);
            WcfGlobal.Quit(StartType.HttpService);
        }