/// <summary> /// Gets a collection of <see cref="IServiceDescriptor"/> identifying and /// describing the service dependencies of a given service or installer type. /// </summary> /// <param name="type">A type of service of installer.</param> /// <returns> /// A collection of services that the given type depends upon. /// </returns> public static IEnumerable <IServiceDescriptor> ForDependenciesOf(Type type) { return(TypeMeta.GetAnnotatedDependencies(type) .Select(dependencyType => For(dependencyType))); }