PackageExtensions Class

Simple Injector
Extension methods for working with packages.
Inheritance Hierarchy

SystemObject
  SimpleInjectorPackageExtensions

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

public static class PackageExtensions

The PackageExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberGetPackagesToRegister
Loads all IPackage implementations from the given set of assemblies and returns a list of created package instances.
Public methodStatic memberRegisterPackages(Container) Obsolete.
Loads all IPackage implementations from assemblies that are currently loaded in the current AppDomain, and calls their Register method. Note that only publicly exposed classes that contain a public default constructor will be loaded. Note that this method will only pick up assemblies that are loaded at that moment in time. A more reliable way of registering packages is by explicitly supplying the list of assemblies using the RegisterPackages(Container, IEnumerableAssembly) overload.
Public methodStatic memberRegisterPackages(Container, IEnumerableAssembly)
Loads all IPackage implementations from the given set of assemblies and calls their Register method. Note that only publicly exposed classes that contain a public default constructor will be loaded.
Top
See Also

Reference