Show / Hide Table of Contents

    Class ChildComponentConfiguration<TChildComponentBuilder>

    Represents the configuration of a Copper child component.

    Inheritance
    System.Object
    ChildComponentConfiguration
    ChildComponentConfiguration<TChildComponentBuilder>
    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 Source

    ChildComponentConfiguration(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.

    View Source

    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 Source

    ConfigureComponentBuilder(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 TChildComponentBuilder.

    View Source

    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.

    View Source

    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.

    • View Source
    Back to top Generated by DocFX