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

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

            return(true);
        }
Exemple #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);
        }