/// <summary>
        /// This is the main starting point of this application
        /// </summary>
        public static int Main(string[] args)
        {
            var loader = new HeartOfGold(args);
            var result = loader.Run();

            return((int)result);
        }
Beispiel #2
0
        // This method is the application entry point; Main() is called when the app is started.
        public static int Main(string[] args)
        {
            var moryxRuntime = new HeartOfGold(args);

            moryxRuntime.Load();
            var host = Host.CreateDefaultBuilder(args)
                       .ConfigureWebHostDefaults(webBuilder =>
            {
                webBuilder.UseStartup(conf => new Startup(moryxRuntime));
            }).Build();

            host.Start();
            var result = moryxRuntime.Execute();

            host.Dispose();

            return((int)result);
        }