Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.3.0" />

 IRegistrationSelectionRule

using Stashbox.Resolution; using System.Runtime.CompilerServices; namespace Stashbox.Registration.SelectionRules { [System.Runtime.CompilerServices.NullableContext(1)] internal interface IRegistrationSelectionRule { bool IsValidForCurrentRequest(TypeInformation typeInformation, ServiceRegistration registration, ResolutionContext resolutionContext); bool ShouldIncrementWeight(TypeInformation typeInformation, ServiceRegistration registration, ResolutionContext resolutionContext); } }