Class ChildComponentConfiguration<TChildComponentBuilder>
Represents the configuration of a Copper child component.
Inheritance
Namespace: Copper.Common
Assembly: Copper.Common.dll
Syntax
public sealed class ChildComponentConfiguration<TChildComponentBuilder> : ChildComponentConfiguration where TChildComponentBuilder : ComponentBuilder
Type Parameters
Name | Description |
---|---|
TChildComponentBuilder | The child component builder type. |
Constructors
View SourceChildComponentConfiguration(Func<TChildComponentBuilder>)
Initializes a new instance of the ChildComponentConfiguration<TChildComponentBuilder> class.
Declaration
public ChildComponentConfiguration(Func<TChildComponentBuilder> componentBuilderFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TChildComponentBuilder> | componentBuilderFactory | The component builder factory. |
ChildComponentConfiguration(Func<IServiceProvider, TChildComponentBuilder>)
Initializes a new instance of the ChildComponentConfiguration<TChildComponentBuilder> class.
Declaration
public ChildComponentConfiguration(Func<IServiceProvider, TChildComponentBuilder> componentBuilderFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.IServiceProvider, TChildComponentBuilder> | componentBuilderFactory | The component builder factory. |
Methods
View SourceConfigureComponentBuilder(Action<TChildComponentBuilder>)
Configures the component builder. The child component builder passed in is the result of the configured child component builder factory.
Declaration
public void ConfigureComponentBuilder(Action<TChildComponentBuilder> configureDelegate)
Parameters
Type | Name | Description |
---|---|---|
System.Action<TChildComponentBuilder> | configureDelegate | The delegate for configuring the |
ReplaceComponentBuilderFactory(Func<TChildComponentBuilder>)
Replaces the configured component builder factory.
Declaration
public void ReplaceComponentBuilderFactory(Func<TChildComponentBuilder> componentBuilderFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TChildComponentBuilder> | componentBuilderFactory | The child component builder factory that replaces the currently configured one. |
ReplaceComponentBuilderFactory(Func<IServiceProvider, TChildComponentBuilder>)
Replaces the configured child component builder factory.
Declaration
public void ReplaceComponentBuilderFactory(Func<IServiceProvider, TChildComponentBuilder> componentBuilderFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.IServiceProvider, TChildComponentBuilder> | componentBuilderFactory | The child component builder factory that replaces the currently configured one. Provides access to the parent component builder's System.IServiceProvider. |