public ComponentContext(bool registerBuiltInComponents) { _repository = new Repository(); _variables = new Dictionary <string, object>(); _compositionListeners = new Dictionary <string, ICompositionListener>(); var componentContextFactory = new PreInitializedComponentFactory(this); InternalRegister(typeof(IComposer), null, componentContextFactory, false); InternalRegister(typeof(IComponentContext), null, componentContextFactory, false); InternalRegister(typeof(ComponentContext), null, componentContextFactory, false); if (registerBuiltInComponents) { RegisterBuildInComponents(); } }
public FluentPreInitializedComponentConfig(ComponentContext context, object componentInstance) { _context = context; _factory = new PreInitializedComponentFactory(componentInstance); }