コード例 #1
0
 private static IImplementationTypeFilter WithAnyAttribute(this IImplementationTypeFilter filter,
                                                           params Type[] attributes) =>
 filter.Where(t => attributes.Any(a => t.HasAttribute(a)));
 internal static IImplementationTypeFilter Filter(
     this IImplementationTypeFilter classes,
     ServiceLifetime lifetime)
 => classes.Where(type => ValidateType(type, lifetime));