Skip to content

Release v7.7.2

Choose a tag to compare

@github-actions github-actions released this 08 Mar 19:58
c4ff169

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

  • AddSelfBindings had services.Any(s => s.ServiceType != _) — logically always true when any other service is registered, so it never skipped duplicates. Fixed to !services.Any(s => s.ServiceType == _).

Added

  • Spec: AddSelfBindings does not add a duplicate when the concrete type is already registered
  • Spec: AddBindingsByConvention does 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.