NameRule class NameRule : IRegistrationSelectionRule Documentation Code public NameRule() public bool IsValidForCurrentRequest(TypeInformation typeInformation, ServiceRegistration registration, ResolutionContext resolutionContext, out bool shouldIncrementWeight)