示例#1
0
        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();
        }