/// <summary> /// Calls the component builder plug-in to return a fluent interface for configuring a component. /// You can pass a component instance or allow the builder to build one from scratch /// </summary> /// <param name="componentInstance">Optional instance to configure</param> /// <param name="declaringType">Used to configure the instance from custom attributes</param> /// <returns></returns> public IComponentDefinition BuildUpComponent(object componentInstance, Type declaringType, IPackage package) { if (ComponentBuilder == null) { throw new FluentBuilderException("There is no build engine installed that knows how to build components"); } return(ComponentBuilder.BuildUpComponent(componentInstance, declaringType, package ?? _packageContext)); }