C# Class NServiceBus.Hosting.Helpers.AssemblyScanner

Helpers for assembly scanning operations
Afficher le fichier Open project: Particular/NServiceBus Class Usage Examples

Private Properties

Свойство Type Description
AssemblyPath string
AssemblyScanner System
DistillLowerAssemblyName string
FormatReflectionTypeLoadException string
GetHandlerMessageTypes List
IsAllowedType bool
IsIncluded bool
IsMatch bool
IsRuntimeAssembly bool
IsRuntimeAssembly bool
ReferencesNServiceBus bool
ReferencesNServiceBus bool
ScanDirectoryForAssemblyFiles List

Méthodes publiques

Méthode Description
AssemblyScanner ( ) : System

Creates a new scanner that will scan the base directory of the current appdomain.

AssemblyScanner ( string baseDirectoryToScan ) : System

Creates a scanner for the given directory.

GetScannableAssemblies ( ) : AssemblyScannerResults

Traverses the specified base directory including all sub-directories, generating a list of assemblies that can be scanned for handlers, a list of skipped files, and a list of errors that occurred while scanning. Scanned files may be skipped when they're either not a .NET assembly, or if a reflection-only load of the .NET assembly reveals that it does not reference NServiceBus.

ScanAssembly ( string assemblyPath, AssemblyScannerResults results, bool>.Dictionary processed ) : void

Private Methods

Méthode Description
AssemblyPath ( Assembly assembly ) : string
AssemblyScanner ( Assembly assemblyToScan ) : System
DistillLowerAssemblyName ( string assemblyOrFileName ) : string
FormatReflectionTypeLoadException ( string fileName, ReflectionTypeLoadException e ) : string
GetHandlerMessageTypes ( List list ) : List
IsAllowedType ( Type type ) : bool
IsIncluded ( string assemblyNameOrFileName ) : bool
IsMatch ( string expression1, string expression2 ) : bool
IsRuntimeAssembly ( AssemblyName assemblyName ) : bool
IsRuntimeAssembly ( string assemblyPath ) : bool
ReferencesNServiceBus ( Assembly assembly, string coreAssemblyName, bool>.Dictionary processed ) : bool
ReferencesNServiceBus ( string assemblyPath, bool>.Dictionary processed, string coreAssemblyName = NServicebusCoreAssemblyName ) : bool
ScanDirectoryForAssemblyFiles ( string directoryToScan, bool scanNestedDirectories ) : List

Method Details

AssemblyScanner() public méthode

Creates a new scanner that will scan the base directory of the current appdomain.
public AssemblyScanner ( ) : System
Résultat System

AssemblyScanner() public méthode

Creates a scanner for the given directory.
public AssemblyScanner ( string baseDirectoryToScan ) : System
baseDirectoryToScan string
Résultat System

GetScannableAssemblies() public méthode

Traverses the specified base directory including all sub-directories, generating a list of assemblies that can be scanned for handlers, a list of skipped files, and a list of errors that occurred while scanning. Scanned files may be skipped when they're either not a .NET assembly, or if a reflection-only load of the .NET assembly reveals that it does not reference NServiceBus.
public GetScannableAssemblies ( ) : AssemblyScannerResults
Résultat AssemblyScannerResults

ScanAssembly() public méthode

public ScanAssembly ( string assemblyPath, AssemblyScannerResults results, bool>.Dictionary processed ) : void
assemblyPath string
results AssemblyScannerResults
processed bool>.Dictionary
Résultat void