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(); }
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(); }