C# Class AsmResolver.Net.DefaultNetAssemblyResolver

Provides a default assembly resolution mechanism for .NET assemblies.
Inheritance: INetAssemblyResolver
Exibir arquivo Open project: JerreS/AsmResolver

Public Methods

Method Description
ClearCache ( ) : void

Clears the assembly resolution cache.

ResolveAssembly ( IAssemblyDescriptor descriptor ) : AssemblyDefinition

Protected Methods

Method Description
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.

Private Methods

Method Description
DefaultNetAssemblyResolver ( ) : System
GetGacDirectories ( string assemblyDirectory, bool is40 ) : IEnumerable

Method Details

ClearCache() public method

Clears the assembly resolution cache.
public ClearCache ( ) : void
return void

GetFilePath() protected method

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.
return string

OnAssemblyResolutionFailed() protected method

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.
return AssemblyDefinition

ReadAssembly() protected method

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.
return WindowsAssembly

ResolveAssembly() public method

public ResolveAssembly ( IAssemblyDescriptor descriptor ) : AssemblyDefinition
descriptor IAssemblyDescriptor
return AssemblyDefinition