DependencyInjectionBehaviorExtensionsVerify Method

Simple Injector
Verifies the specified consumer.

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

public static void Verify(
	this IDependencyInjectionBehavior behavior,
	InjectionConsumerInfo consumer
)

Parameters

behavior
Type: SimpleInjector.AdvancedIDependencyInjectionBehavior
The behavior.
consumer
Type: SimpleInjectorInjectionConsumerInfo
Contextual information about the consumer where the built dependency is injected into.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDependencyInjectionBehavior. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
ActivationException Thrown when the type of the target supplied with the supplied consumer cannot be used for auto wiring.
ArgumentNullExceptionThrown when one of the supplied arguments is a null reference.
See Also

Reference