Skip to main content
Any Framework

DepMan has a very simple interface; Init(), Get<TInterface>() and 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 (O(1)) 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
Dec 17, 2016
9y ago
Total Downloads
40.7K
40,668

Deprecated Package Version

Reason: Legacy

Install

dotnet add package Rosenbjerg.DepMan --version 1.2.0

No framework information available.

Changes from Previous Version

No structural changes between v1.1.2 and v1.2.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.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

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