Skip to content

Allow specifying injection member via optional attribute #3

@drewnoakes

Description

@drewnoakes

Add attribute [Injection], allowing specific delegation for Servant's construction purposes of the factory or constructor to use for instantiating the containing type. The attribute may only be used once within a type, and is only valid on constructors and static methods. Perhaps allow overload resolution, using name for factory method, but unfortunately this is trickier for constructors where you'd have to specify the types of arguments. The [Injection] attribute is also attributed with ReSharper's [MeansImplicitUse].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions