public ChromieTalkie(ILoggerFactory loggerFactory, IOptionsMonitor <Config> options) { _logger = loggerFactory.CreateLogger(typeof(ChromieTalkie)); _config = options.CurrentValue; if (_config.RemoteEndpoint == null) { _logger.LogInformation("No remote puppeteer browser specified, downloading browser"); var task = new BrowserFetcher().DownloadAsync(BrowserFetcher.DefaultRevision); task.Wait(); } EnsureBrowserReady().Wait(); }