Skip to content

Properties injection for services that are declared in-code #1

@VitaliyMF

Description

@VitaliyMF

Currently properties marked with [Dependency] attribute are automatically resolved (by-type) for components defined in JSON config and if ComponentDescriptor.InjectDependencyAttr=true.

It might be useful to perform properties injections for services that are already registered in IServiceCollection. This can be implemented as an extension method like services.InjectDependencyProperties() that scans existing ServiceDescriptor declarations, and if it finds a type that has properties with [Dependency] attribute, replaces this service definition with handler that performs injections for these properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions