예제 #1
0
        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
        }
예제 #2
0
 public static ActionTimer get()
 {
     if (at == null)
     {
         at = new ActionTimer();
     }
     return(at);
 }