.NETStandard2.0
An official and open-source Metalama extension that allows aspects to consume dependencies from an arbitrary dependency injection framework.
Published
Mar 15, 2023
3y ago
Total Downloads
563.7K
563,694
Install
dotnet add package Metalama.Extensions.DependencyInjection --version 2023.0.108-rc
| Product | Versions |
|---|---|
| .NET Standard |
README
The Metalama.Extensions.DependencyInjection package implements support for dependency injection in Metalama.
It has two major features:
[IntroduceDependency]is an advice attribute that makes it easier for aspect to pull dependencies without knowing which dependency framework is used by the consuming project.[Dependency]is an aspect that turns a field or property into a dependency, and pulls it according to the rules of the dependency framework used by the consuming project.
See also
Changes from Previous Version
No structural changes between v2023.0.107-rc and v2023.0.108-rc.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.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.