/// <summary> /// Searches for the first interface found associated with the /// <see cref="ServiceDescriptor" /> which is not generic and which /// is found in the specified namespace. /// </summary> /// <param name="descriptor">The service descriptor.</param> /// <param name="interfaceNamespace">The interface's namespace.</param> /// <returns>The based on descriptor.</returns> public static BasedOnDescriptor FirstNonGenericCoreInterface(this ServiceDescriptor descriptor, params string[] interfaceNamespaces) { return(descriptor.FirstNonGenericCoreInterface(new List <Type>(), interfaceNamespaces)); }