ContainerOptionsConstructorResolutionBehavior Property

Simple Injector
Gets or sets the constructor resolution behavior. By default, the container only supports types that have a single public constructor.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public IConstructorResolutionBehavior ConstructorResolutionBehavior { get; set; }

Property Value

Type: IConstructorResolutionBehavior
The constructor resolution behavior.
Exceptions

ExceptionCondition
NullReferenceExceptionThrown when the supplied value is a null reference.
InvalidOperationException Thrown when the container already contains registrations.
See Also

Reference