public static IAssemblyScanner ScanReferencedAssemblies(this IAssemblyScanner scanner) { var assemblies = GetReferencedAssemblies(); scanner.ScanAssemblies(assemblies); return(scanner); }
public static IAssemblyScanner ScanReferencedAssemblies(this IAssemblyScanner scanner, Func <Assembly, bool> filter) { if (filter == null) { throw new ArgumentNullException("filter"); } var assemblies = GetReferencedAssemblies(). Where(filter); scanner.ScanAssemblies(assemblies); return(scanner); }