<PackageReference Include="Castle.Windsor" Version="5.1.0" />

IHandlerSelector

public interface IHandlerSelector
Implementors of this interface allow to extend the way the container perform component resolution based on some application specific business logic.
bool HasOpinionAbout(string key, Type service)

Whatever the selector has an opinion about resolving a component with the specified service and key.

IHandler SelectHandler(string key, Type service, IHandler[] handlers)

Select the appropriate handler from the list of defined handlers. The returned handler should be a member from the handlers array.