Scans all the types in an assembly, checking if they're any of the types we're after.
Public Member Functions | |
AssemblyScanner () | |
void | MergeInto (AssemblyScanner scanner) |
Merges the scanners from this into the given one. More... | |
void | ScanAll () |
Scans all loaded assemblies. More... | |
void | FindAllSubTypes (Type type, OnFoundTypeEvent found) |
Checks for the given type. More... | |
void | FindAllSubTypes (int pass, Type type, OnFoundTypeEvent found) |
Checks for the given type. Optionally allow multiple passes (e.g. if searching for a type requires other types to be ready to go). More... | |
void | FindAllSubTypes (int pass, Type type, OnFoundTypeEvent found, bool allowGeneric) |
Checks for the given type. Optionally allow multiple passes (e.g. if searching for a type requires other types to be ready to go). More... | |
void | Scan (Type type) |
Scans the assembly containing the given type now. More... | |
void | Scan (Assembly asm) |
Scans the given assembly now. More... | |
Static Public Member Functions | |
static void | FindAllSubTypesNow (Type type, OnFoundTypeEvent mtd) |
Finds all subtypes and registers the handler for any newly loaded assemblies. More... | |
static void | ScanThisNow (AssemblyScannerMethod mtd) |
Scans the assembly containing the given method which adds the types to look for. More... | |
static void | ScanAllNow (AssemblyScannerMethod mtd) |
Scans all loaded assemblies. The given method provides the types to look for. Stores the scanner globally so any newly loaded assemblies will get scanned too. More... | |
static void | ScanAllNow (AssemblyScannerMethod mtd, bool sharedScanner) |
Scans all loaded assemblies. The given method provides the types to look for. More... | |
Private Member Functions | |
void | Add (int pass, TypeToFind ttf) |
Adds a type to find to the given pass. More... | |
void | ScanPass (Assembly asm, List< TypeToFind > set) |
Performs one of the scan passes. More... | |
Private Attributes | |
SortedDictionary< int, List < TypeToFind > > | ToFind |
All the types to look out for, sorted by pass number. More... | |
|
inline |
|
inlineprivate |
Adds a type to find to the given pass.
|
inline |
Checks for the given type.
|
inline |
Checks for the given type. Optionally allow multiple passes (e.g. if searching for a type requires other types to be ready to go).
|
inline |
Checks for the given type. Optionally allow multiple passes (e.g. if searching for a type requires other types to be ready to go).
|
inlinestatic |
Finds all subtypes and registers the handler for any newly loaded assemblies.
|
inline |
Merges the scanners from this into the given one.
|
inline |
Scans the assembly containing the given type now.
|
inline |
Scans the given assembly now.
|
inline |
Scans all loaded assemblies.
|
inlinestatic |
Scans all loaded assemblies. The given method provides the types to look for. Stores the scanner globally so any newly loaded assemblies will get scanned too.
|
inlinestatic |
Scans all loaded assemblies. The given method provides the types to look for.
sharedScanner | True if you'd like the scanners to be stored globally. They'll then be used on any newly loaded assemblies. |
|
inlineprivate |
Performs one of the scan passes.
|
inlinestatic |
Scans the assembly containing the given method which adds the types to look for.
|
private |
All the types to look out for, sorted by pass number.