Skip to content

Compono.ConfigurationSource.ProfileChain.ProfileChain(System.Collections.Generic.IReadOnlyList System.Type )

Compono

Compono.ConfigurationSource.ProfileChain

ProfileChain(IReadOnlyList\<Type>) Constructor

Creates a ProfileChain source.

public ProfileChain(System.Collections.Generic.IReadOnlyList<System.Type> profiles);

Parameters

profiles System.Collections.Generic.IReadOnlyList<System.Type>

The applied profile types, outermost first - always at least one; this source represents "made inside a profile," so an empty chain has no coherent meaning. Copied into an immutable snapshot - mutating a list passed here after this constructor returns has no effect on Profiles.

Exceptions

System.ArgumentException
profiles is empty.