PackageExtensionsGetPackagesToRegister Method

Simple Injector
Loads all IPackage implementations from the given set of assemblies and returns a list of created package instances.

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Packaging (in SimpleInjector.Packaging.dll) Version: 4.0.0
Syntax

public static IPackage[] GetPackagesToRegister(
	this Container container,
	IEnumerable<Assembly> assemblies
)

Parameters

container
Type: SimpleInjectorContainer
The container.
assemblies
Type: System.Collections.GenericIEnumerableAssembly
The assemblies that will be searched for packages.

Return Value

Type: IPackage
Returns a list of created packages.

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