Exemplo n.º 1
0
 /// <summary>
 ///   Specifies that components registered with <paramref name = "componentTypes" /> should be used to satisfy collection dependencies matched by <paramref
 ///    name = "collectionDependencyType" />
 /// </summary>
 public static ServiceOverride OnComponentCollection(Type collectionDependencyType, params Type[] componentTypes)
 {
     return(ServiceOverride.ForKey(collectionDependencyType).Eq(componentTypes));
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Specifies that components registered with <paramref name = "componentTypes" /> should be used to satisfy collection dependencies matched by <typeparamref
 ///    name = "TCollectionDependencyType" />
 /// </summary>
 public static ServiceOverride OnComponentCollection <TCollectionDependencyType>(params Type[] componentTypes)
     where TCollectionDependencyType : IEnumerable
 {
     return(ServiceOverride.ForKey(typeof(TCollectionDependencyType)).Eq(componentTypes));
 }
Exemplo n.º 3
0
 /// <summary>
 ///   Specifies that components registered with <paramref name = "componentNames" /> should be used to satisfy collection dependencies matched by <paramref
 ///    name = "collectionDependencyName" />
 /// </summary>
 public static ServiceOverride OnComponentCollection(string collectionDependencyName, params string[] componentNames)
 {
     return(ServiceOverride.ForKey(collectionDependencyName).Eq(componentNames));
 }