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: 5.0.0
Syntax
public static SimpleInjectorAspNetCoreBuilder AddPageModelActivation( this SimpleInjectorAspNetCoreBuilder builder )
Parameters
- builder
- Type: SimpleInjector.Integration.AspNetCoreSimpleInjectorAspNetCoreBuilder
The builder instance.
Return Value
Type: SimpleInjectorAspNetCoreBuilderThe 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