Exemple #1
0
        public static void Main(string[] args)
        {
            var dependenciesInstaller = new DependenciesInstaller("../Dependencies");

            if (!dependenciesInstaller.CheckDependencies())
            {
                Console.WriteLine($"Unable to automatically download dependencies.");
                Console.WriteLine("Press ENTER to exit.");
                Console.ReadLine();

                return;
            }

            var webHost = CreateWebHostBuilder(args).Build();

            webHost.Start();

            var application = new Application(@"http://localhost:5000");

            application.BrowserWindowCreated += OnBrowserWindowCreated;

            application.Run();

            webHost.StopAsync();
            webHost.WaitForShutdown();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var dependenciesInstaller = new DependenciesInstaller("../Dependencies");

            if (!dependenciesInstaller.CheckDependencies())
            {
                Console.WriteLine($"Unable to automatically download dependencies.");
                Console.WriteLine("Press ENTER to exit.");
                Console.ReadLine();

                return;
            }

            var application = new Application(@"../../../src/presentation/index.html");

            application.BrowserWindowCreated += OnBrowserWindowCreated;

            application.Run();
        }