SimpleInjectorAspNetCoreMvcIntegrationExtensionsRegisterMvcViewComponents Method (Container, IApplicationBuilder)

Simple Injector
Registers the ASP.NET Core MVC view component instances that are defined in the application.

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.AspNetCore.Mvc.Core (in SimpleInjector.Integration.AspNetCore.Mvc.Core.dll) Version: 4.1.0-alpha1
Syntax

public static void RegisterMvcViewComponents(
	this Container container,
	IApplicationBuilder applicationBuilder
)

Parameters

container
Type: SimpleInjectorContainer
The container the controllers should be registered in.
applicationBuilder
Type: IApplicationBuilder
The ASP.NET object that holds the IViewComponentDescriptorProvider that allows retrieving the application's controller types.

Usage Note

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