Skip to main content
.NETStandard2.0

An official and open-source Metalama extension that allows aspects to consume dependencies from an arbitrary dependency injection framework.

Published
Apr 15, 2025
1y ago
Total Downloads
563.7K
563,694

Install

dotnet add package Metalama.Extensions.DependencyInjection --version 2025.1.4-rc
ProductVersions
.NET Standard
netstandard2.0

README

Metalama Logo

About

The Metalama.Extensions.DependencyInjection package implements support for dependency injection in Metalama.

Principal Types

  • [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.

Documentation

Related Packages

Changes from Previous Version

No structural changes between v2025.1.3-rc and v2025.1.4-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.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.