public static void Init() { ActionTimer.get(); //Init UserList: addHTTPUser("Rio", "test", Permissions.All); //Init Listener: mListener = new HttpListener(); mListener.Prefixes.Add(String.Format("http://*:{0}{1}", 1234, "/")); mListener.Start(); mListener.AuthenticationSchemes = AuthenticationSchemes.Basic; mListener.BeginGetContext(new AsyncCallback(ContextReceivedCallback), null); #if SSM_ACCOUNT_LOGGING GUC.Server.Scripts.Accounts.Logs.SQLiteLogger.Init(); #endif }
public static ActionTimer get() { if (at == null) { at = new ActionTimer(); } return(at); }