Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tillig opened this issue May 6, 2022 · 0 comments

Comments

@tillig
Copy link
Member

tillig commented May 6, 2022

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
@tillig tillig changed the title Ability to uniquely identify a registration object (IRegistration<T,U,V>) Ability to uniquely identify a registration object (IRegistrationBuilder<T,U,V>) May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant