Esempio n. 1
0
        internal RuntimeBuilder(Action <ChromiumEnvironmentBuilder> buildChromiumEnvironment = null, Action <ApplicationConfigurationBuilder> configureAppConfiguration = null)
        {
            _context = new RuntimeBuilderContext(Properties);

            _options = new RuntimeOptions(_context);

            _context.Properties[typeof(SimpleContainer)] = _container = new SimpleContainer();

            var hostExtension = new HostWindow.JavaScriptExtension.HostWindowExtension();

            _container.RegisterInstance <JavaScriptExtensionBase>(hostExtension, hostExtension.Name);


            _context.Properties[typeof(ChromiumEnvironmentBuilder)] = _chromiumEnvironmentBuilder = new ChromiumEnvironmentBuilder(_context);

            buildChromiumEnvironment?.Invoke(_chromiumEnvironmentBuilder);

            _context.Properties[typeof(ChromiumEnvironment)] = _env = _chromiumEnvironmentBuilder.Build();


            _context.Properties[typeof(ApplicationConfigurationBuilder)] = _appConfigBuilder = new ApplicationConfigurationBuilder(_context);

            configureAppConfiguration?.Invoke(_appConfigBuilder);

            _context.Properties[typeof(ApplicationConfiguration)] = _appConfig = _appConfigBuilder.Build();
        }
Esempio n. 2
0
        internal ApplicationConfigurationBuilder(RuntimeBuilderContext runtimeBuilderContext)
        {
            _context = runtimeBuilderContext;


            ChromiumEnvironment = (ChromiumEnvironment)_context.Properties[typeof(ChromiumEnvironment)];
            Container           = (SimpleContainer)_context.Properties[typeof(SimpleContainer)];
        }
        internal ChromiumEnvironmentBuilder(RuntimeBuilderContext runtimeBuilderContext)
        {
            _context = runtimeBuilderContext;

            Container = (SimpleContainer)_context.Properties[typeof(SimpleContainer)];
        }
Esempio n. 4
0
 public RuntimeOptions(RuntimeBuilderContext context)
 {
     RuntimeBuilderContext = context;
 }