C# Класс AsmResolver.Net.DefaultNetAssemblyResolver

Provides a default assembly resolution mechanism for .NET assemblies.
Наследование: INetAssemblyResolver
Показать файл Открыть проект

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

Метод Описание
ClearCache ( ) : void

Clears the assembly resolution cache.

ResolveAssembly ( IAssemblyDescriptor descriptor ) : AssemblyDefinition

Защищенные методы

Метод Описание
GetFilePath ( IAssemblyDescriptor descriptor ) : string

Gets the file path to the assembly file that was described by the given assembly descriptor.

OnAssemblyResolutionFailed ( AssemblyResolutionEventArgs e ) : AssemblyDefinition

Fires when an assembly could not be resolved, providing the availability to extend the assembly resolver.

ReadAssembly ( string filePath ) : WindowsAssembly

Reads a windows assembly image from the specified file path.

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

Метод Описание
DefaultNetAssemblyResolver ( ) : System
GetGacDirectories ( string assemblyDirectory, bool is40 ) : IEnumerable

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

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

Clears the assembly resolution cache.
public ClearCache ( ) : void
Результат void

GetFilePath() защищенный Метод

Gets the file path to the assembly file that was described by the given assembly descriptor.
protected GetFilePath ( IAssemblyDescriptor descriptor ) : string
descriptor IAssemblyDescriptor The assembly to resolve.
Результат string

OnAssemblyResolutionFailed() защищенный Метод

Fires when an assembly could not be resolved, providing the availability to extend the assembly resolver.
protected OnAssemblyResolutionFailed ( AssemblyResolutionEventArgs e ) : AssemblyDefinition
e AssemblyResolutionEventArgs The event arguments associated with this event.
Результат AssemblyDefinition

ReadAssembly() защищенный Метод

Reads a windows assembly image from the specified file path.
protected ReadAssembly ( string filePath ) : WindowsAssembly
filePath string The file path to the assembly to read.
Результат WindowsAssembly

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

public ResolveAssembly ( IAssemblyDescriptor descriptor ) : AssemblyDefinition
descriptor IAssemblyDescriptor
Результат AssemblyDefinition