C# Class MassTransit.Util.AssemblyTypeCache

Caches assemblies and assembly types to avoid repeated assembly scanning
Exibir arquivo Open project: MassTransit/MassTransit

Public Methods

Method Description
Clear ( ) : void

Remove all cached assemblies, essentially forcing a reload of any new assembly scans

FailedAssemblies ( ) : IEnumerable
FindTypes ( Assembly assembly, TypeClassification classification, bool>.Func filter = null ) : Task>
FindTypes ( IEnumerable assemblies, TypeClassification classification, bool>.Func filter = null ) : Task>
FindTypes ( IEnumerable assemblies, bool>.Func filter = null ) : Task
ForAssembly ( Assembly assembly ) : Task
ThrowIfAnyTypeScanFailures ( ) : void

Use to assert that there were no failures in type scanning when trying to find the exported types from any Assembly

Method Details

Clear() public static method

Remove all cached assemblies, essentially forcing a reload of any new assembly scans
public static Clear ( ) : void
return void

FailedAssemblies() public static method

public static FailedAssemblies ( ) : IEnumerable
return IEnumerable

FindTypes() public static method

public static FindTypes ( Assembly assembly, TypeClassification classification, bool>.Func filter = null ) : Task>
assembly System.Reflection.Assembly
classification TypeClassification
filter bool>.Func
return Task>

FindTypes() public static method

public static FindTypes ( IEnumerable assemblies, TypeClassification classification, bool>.Func filter = null ) : Task>
assemblies IEnumerable
classification TypeClassification
filter bool>.Func
return Task>

FindTypes() public static method

public static FindTypes ( IEnumerable assemblies, bool>.Func filter = null ) : Task
assemblies IEnumerable
filter bool>.Func
return Task

ForAssembly() public static method

public static ForAssembly ( Assembly assembly ) : Task
assembly System.Reflection.Assembly
return Task

ThrowIfAnyTypeScanFailures() public static method

Use to assert that there were no failures in type scanning when trying to find the exported types from any Assembly
public static ThrowIfAnyTypeScanFailures ( ) : void
return void