/// <inheritdoc /> public Task RunAsync() { if (!_appHost.CanLaunchWebBrowser) { return(Task.CompletedTask); } if (!_appConfig.HostWebClient()) { BrowserLauncher.OpenSwaggerPage(_appHost); } else if (!_config.Configuration.IsStartupWizardCompleted) { BrowserLauncher.OpenWebApp(_appHost); } else if (_config.Configuration.AutoRunWebApp) { var options = ((ApplicationHost)_appHost).StartupOptions; if (!options.NoAutoRunWebApp) { BrowserLauncher.OpenWebApp(_appHost); } } return(Task.CompletedTask); }
private void Run() { if (!_appHost.CanLaunchWebBrowser) { return; } // Always launch the startup wizard if possible when it has not been completed if (!_config.Configuration.IsStartupWizardCompleted && _appConfig.HostWebClient()) { BrowserLauncher.OpenWebApp(_appHost); return; } // Do nothing if the web app is configured to not run automatically if (!_config.Configuration.AutoRunWebApp || _startupOptions.NoAutoRunWebApp) { return; } // Launch the swagger page if the web client is not hosted, otherwise open the web client if (_appConfig.HostWebClient()) { BrowserLauncher.OpenWebApp(_appHost); } else { BrowserLauncher.OpenSwaggerPage(_appHost); } }
/// <summary> /// Runs this instance. /// </summary> public void Run() { if (!_appHost.CanLaunchWebBrowser) { return; } if (_appHost.IsFirstRun) { BrowserLauncher.OpenWizard(_appHost); } else if (_config.Configuration.IsStartupWizardCompleted && _config.Configuration.AutoRunWebApp) { var options = ((ApplicationHost)_appHost).StartupOptions; if (!options.ContainsOption("-noautorunwebapp")) { BrowserLauncher.OpenWebApp(_appHost); } } }
/// <summary> /// Runs this instance. /// </summary> public void Run() { if (!_appHost.CanLaunchWebBrowser) { return; } if (!_config.Configuration.IsStartupWizardCompleted) { BrowserLauncher.OpenWebApp(_appHost); } else if (_config.Configuration.AutoRunWebApp) { var options = ((ApplicationHost)_appHost).StartupOptions; if (!options.NoAutoRunWebApp) { BrowserLauncher.OpenWebApp(_appHost); } } }
void cmdConfigure_Click(object sender, EventArgs e) { BrowserLauncher.OpenWebApp(_appHost); }
void notifyIcon1_DoubleClick(object sender, EventArgs e) { BrowserLauncher.OpenWebApp(_appHost); }