Esempio n. 1
0
        public App(AppContext context)
        {
            Context = context ?? throw new ArgumentNullException(nameof(context));

            // The main entry point for the browser page is index.html
            var url = new Uri($"fs:///{AppContext.AppDirectory}app.html");

            _browser         = new ChromiumWebBrowser(url.ToString());
            _browserLogger   = new BrowserLogger(_browser);
            _compositeLogger = CompositeLogger.Create(AppContext.Logger);

            // Initialize the app
            _appHandler = new AppHandlers(this, _browser);

            InitializeComponent();
        }