C# Класс NServiceBus.Hosting.Helpers.AssemblyScanner

Helpers for assembly scanning operations
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AssemblyScanner() публичный Метод

Creates a new scanner that will scan the base directory of the current appdomain.
public AssemblyScanner ( ) : System
Результат System

AssemblyScanner() публичный Метод

Creates a scanner for the given directory.
public AssemblyScanner ( string baseDirectoryToScan ) : System
baseDirectoryToScan string
Результат System

GetScannableAssemblies() публичный Метод

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
Результат AssemblyScannerResults

ScanAssembly() публичный Метод

public ScanAssembly ( string assemblyPath, AssemblyScannerResults results, bool>.Dictionary processed ) : void
assemblyPath string
results AssemblyScannerResults
processed bool>.Dictionary
Результат void