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.10.2

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


Type: SimpleInjectorContainer
The container.
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