ContainerVerify Method (VerificationOption)

Simple Injector
Verifies the Container. This method will call all registered delegates, iterate registered collections and throws an exception if there was an error.

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

public void Verify(
	VerificationOption option
)

Parameters

option
Type: SimpleInjectorVerificationOption
Specifies how the container should verify its configuration.
Exceptions

ExceptionCondition
InvalidOperationExceptionThrown when the registration of instances was invalid.
DiagnosticVerificationExceptionThrown in case there are diagnostic errors and the VerifyAndDiagnose option is supplied.
ArgumentExceptionThrown when option has an invalid value.
See Also

Reference