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);
        }
Exemple #2
0
        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();
        }
Exemple #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);
        }