IConstructorResolutionBehavior Interface

Simple Injector
Defines the container's behavior for finding a suitable constructor for the creation of a type. Set the ConstructorResolutionBehavior property of the container's Options property to change the default behavior of the container.

Namespace:  SimpleInjector.Advanced
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.0.0
Syntax

public interface IConstructorResolutionBehavior

The IConstructorResolutionBehavior type exposes the following members.

Methods

  NameDescription
Public methodTryGetConstructor
Gets the given implementationType's constructor that can be used by the container to create that instance. In case no suitable constructor can be found, null is returned and the errorMessage will contain the reason why the resolution failed.
Top
Extension Methods

  NameDescription
Public Extension MethodGetConstructor
Gets the given implementationType's constructor that can be used by the container to create that instance.
(Defined by ConstructorResolutionBehaviorExtensions.)
Top
See Also

Reference