SimpleInjectorAspNetCoreBuilderMvcExtensionsAddPageModelActivation Method

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

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.AspNetCore.Mvc (in SimpleInjector.Integration.AspNetCore.Mvc.dll) Version: 4.6.0

public static SimpleInjectorAspNetCoreBuilder AddPageModelActivation(
	this SimpleInjectorAspNetCoreBuilder 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