Note: This API is now 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.
Assembly: SimpleInjector.Packaging (in SimpleInjector.Packaging.dll) Version: 4.4.0
[ObsoleteAttribute("RegisterPackages has been deprecated. Please use RegisterPackages(Container, IEnumerable<Assembly>) instead.", false)] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public static void RegisterPackages( this Container container )
<ExtensionAttribute> <ObsoleteAttribute("RegisterPackages has been deprecated. Please use RegisterPackages(Container, IEnumerable<Assembly>) instead.", false)> <EditorBrowsableAttribute(EditorBrowsableState.Never)> Public Shared Sub RegisterPackages ( container As Container )
- Type: SimpleInjectorContainer
The container to which the packages will be applied to.
Usage NoteIn 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).
|ArgumentNullException||Thrown when the container is a null reference.|