Release v7.7.2
Both AddBindingsByConvention and AddSelfBindings should be no-ops for any service type that already has a registration. AddBindingsByConvention was correct; AddSelfBindings had an inverted condition that made it effectively always register, ignoring pre-existing bindings.
Fixed
AddSelfBindingshadservices.Any(s => s.ServiceType != _)— logically alwaystruewhen any other service is registered, so it never skipped duplicates. Fixed to!services.Any(s => s.ServiceType == _).
Added
- Spec:
AddSelfBindingsdoes not add a duplicate when the concrete type is already registered - Spec:
AddBindingsByConventiondoes not add a duplicate when the interface is already bound
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.