Skip to main content
.NETStandard2.0

DepMan has a very simple interface; Init(), Get<TInterface>, Register<TInterface,TImplementor> DepMan supports two patterns: the ImplementsAttribute->Init->Get pattern, and the Register->Get pattern. You don't need to use the Register method if you decorate the implementing class with the [Implements(..)] attribute and call the Init() method at some point. DepMan creates only one instance of any class registered by default, which ensures that memory isn't wasted on multiple instances. The Get method performs a fast lookup and returns the an instance of the registered class (if any, otherwise throws exception). The 'Implements' attribute can be used to automatically register a class using the interface it implements as key.

Published
Oct 20, 2017
9y ago
Total Downloads
40.7K
40,668

Deprecated Package Version

Reason: Legacy

Install

dotnet add package Rosenbjerg.DepMan --version 1.2.1
ProductVersions
.NET Standard
netstandard2.0

Changes from Previous Version

v1.2.0v1.2.1
Added Frameworks
.NETStandard2.0

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

NuGet marks this package as deprecated and points to Microsoft.Extensions.DependencyInjection as an alternative.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.