protected override void OnStartup(StartupEventArgs e) { var executionPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); var engine = new RuntimeConfiguration().CreateEngine(executionPath); engine.RuntimeContext.RegisterExtensibilityPoint("bootstrapper", new BootstrapperHandler(engine.RuntimeContext)); engine.Start().GetAwaiter().GetResult(); }