예제 #1
0
        public static bool StopAuth()
        {
            if (AuthServ == null)
            {
                return(false);
            }

            SysCons.LogInfo("Stopping AuthServer..");
            AuthServ.Shutdown();
            AuthServThread.Abort();
            AuthServ = null;

            return(true);
        }
예제 #2
0
        public static bool StartAuth()
        {
            if (AuthServ != null)
            {
                return(false);
            }

            AuthServ       = new AuthServ();
            AuthServThread = new Thread(AuthServ.Run)
            {
                IsBackground = true, CurrentCulture = CultureInfo.InvariantCulture
            };
            AuthServThread.Start();

            return(true);
        }