Esempio n. 1
0
        private static void SetLogger()
        {
            string path   = Config.GetValue("logFilePath", null);
            string prefix = Config.GetValue("logFilePrefix", "");

            if (path != null)
            {
                LogMedia.SetTextFileLogger(path, prefix);
            }
        }
Esempio n. 2
0
        public static void StartServer(System.Windows.Forms.TextBox tb)
        {
            if (tb != null)
            {
                LogMedia.SetTextBoxLogger(tb);
            }


            AegisTask.Run(() =>
            {
                //  Initialize AegisFramework
                Framework.Initialized += Framework_Initialized;
                Framework.Running     += Framework_Running;
                Framework.Finalizing  += Framework_Finalizing;
                Framework.Finalized   += Framework_Finalized;
                Framework.Initialize(false);
            });
        }
Esempio n. 3
0
        private static void Framework_Finalized()
        {
            LogMedia.ReleaseAllLogger();

            FinalizedHandler?.Invoke();
        }