Skip to content

Add DependencyMetadata<T> support for decorators #879

@dotnetjunkie

Description

@dotnetjunkie

Simple Injector supports injecting metadata into decorators for a long time through the use of DecoratorContext. More recently (v5) metadata support has been added more broadly through the use of DependencyMetadata<T>. This, however, means that there are now two mechanisms to inject metadata. The decorator subsystem, unfortunately, doesn't support getting DependencyMetadata<T> injected which can be confusing, as reported in #878.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions