SimpleInjectorMvcExtensionsGetControllerTypesToRegister Method

Simple Injector
Returns all public, non abstract, non generic types that implement IController and which name end with "Controller" that are located in the supplied assemblies.

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.Web.Mvc (in SimpleInjector.Integration.Web.Mvc.dll) Version: 4.0.0
Syntax

public static Type[] GetControllerTypesToRegister(
	Container container,
	params Assembly[] assemblies
)

Parameters

container
Type: SimpleInjectorContainer
The container to use.
assemblies
Type: System.ReflectionAssembly
A list of assemblies that will be searched.

Return Value

Type: Type
A list of types.
Remarks

Use this method to retrieve the list of Controller types for manual registration. In most cases, this method doesn't have to be called directly, but the RegisterMvcControllers(Container, Assembly) method can be used instead.
See Also

Reference