bool IsRequestForNamedInstanceDictionary(ResolutionRequest request)
        {
            if (!dictionaryFactory.IsGenericDictionaryType(request.ServiceType))
            {
                return(false);
            }

            var keyType = dictionaryFactory.GetKeyType(request.ServiceType);

            return(keyType == typeof(string) || keyType.GetTypeInfo().IsEnum);
        }