Skip to content

Ability to uniquely identify a registration object (IRegistrationBuilder<T,U,V>) #1327

Open
@tillig

Description

@tillig

Problem Statement

Based on this StackOverflow question it would be helpful to be able to use the ContainerBuilder.Properties dictionary to track information pertaining to individual registrations. At the moment, there's no way to uniquely identify the registration at registration time, though IComponentRegistration has it after the container is built.

Desired Solution

Some way, other than object reference, to identify an individual registration. Ideally a way that could be used in conjunction with the ContainerBuilder.Properties string/object dictionary.

Alternatives You've Considered

  • Change the ContainerBuilder.Properties dictionary to object/object
  • Implement a unique ToString() on IRegistrationBuilder to avoid the breaking interface change
  • Somehow enable metadata or a properties dictionary to be attached to an individual IRegistrationBuilder

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions