ILifestyleSelectionBehaviorSelectLifestyle Method

Simple Injector
Selects the lifestyle based on the supplied type information.

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

Lifestyle SelectLifestyle(
	Type implementationType
)

Parameters

implementationType
Type: SystemType
Type of the implementation to that is registered.

Return Value

Type: Lifestyle
The suited Lifestyle for the given type.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when either one of the arguments is a null reference.
See Also

Reference