示例#1
0
        public Task StartAsync(CancellationToken cancellationToken)
        {
            var assembly = Assembly.GetAssembly(typeof(Config));

            ConfigReader.Load(assembly);
            Config.LoadVersion();

            SEnvir.LogAction = s => _logger.LogInformation(s);

            SEnvir.UseLogConsole = true;
            SEnvir.StartServer();
            return(Task.CompletedTask);
        }
示例#2
0
文件: Program.cs 项目: putao520/mir3
        static void Main()
        {
            ConfigReader.Load();
            Config.LoadVersion();

            GCSettings.LatencyMode = GCLatencyMode.SustainedLowLatency;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            BonusSkins.Register();
            SkinManager.EnableFormSkins();
            UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");

            Application.Run(new SMain());

            ConfigReader.Save();
        }
示例#3
0
        static void Main(string[] args)
        {
            var assembly = Assembly.GetAssembly(typeof(Config));

            ConfigReader.Load(assembly);
            Config.LoadVersion();

            SEnvir.UseLogConsole = true;
            SEnvir.StartServer();

            Console.CancelKeyPress += Console_CancelKeyPress;

            // We check EnvirThread why when SEnvir is full stoped, set this to null...
            while (SEnvir.EnvirThread != null)
            {
                var command = Console.ReadLine();
            }

            ConfigReader.Save(typeof(Config).Assembly);
        }