Stashbox by Peter Csajtai

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

 IRegistrationSelectionRule

using Stashbox.Registration.ServiceRegistrations; 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, out bool shouldIncrementWeight); } }