SimpleInjectorAspNetCoreIntegrationExtensionsAutoCrossWireAspNetComponents Method (Container, IServiceProvider)

Simple Injector
Allows registrations made using the IServiceCollection API to be resolved by Simple Injector.

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

public static void AutoCrossWireAspNetComponents(
	this Container container,
	IServiceProvider appServices
)

Parameters

container
Type: SimpleInjectorContainer
The container.
appServices
Type: SystemIServiceProvider
The IServiceProvider instance that provides the set of singleton services.

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