SimpleInjectorAspNetCoreBuilderMvcCoreExtensionsAddControllerActivation Method

Simple Injector
Registers all application's controllers in Simple Injector and instructs ASP.NET Core to let Simple Injector create those controllers.

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.AspNetCore.Mvc.Core (in SimpleInjector.Integration.AspNetCore.Mvc.Core.dll) Version: 5.0.0
Syntax

public static SimpleInjectorAspNetCoreBuilder AddControllerActivation(
	this SimpleInjectorAspNetCoreBuilder builder
)

Parameters

builder
Type: SimpleInjector.Integration.AspNetCoreSimpleInjectorAspNetCoreBuilder
The builder instance.

Return Value

Type: SimpleInjectorAspNetCoreBuilder
The supplied builder instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SimpleInjectorAspNetCoreBuilder. 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).
See Also

Reference