public int Run() { UserInteraction.Message($"SCALUS is starting up..."); using (GenericHost = CreateHost()) { var serverTask = GenericHost.RunAsync(CancellationTokenSource.Token).ContinueWith(x => { Log.Debug($"Web server stopped: {x.Status}"); return(x); }); OsServices.OpenDefault($"http://localhost:{WebPort}/index.html"); UserInteraction.Message($"SCALUS is running at http://localhost:{WebPort}. Close the browser window to quit."); GenericHost.WaitForShutdown(); } return(0); }