C# Class AsmResolver.Net.DefaultNetAssemblyResolver

Provides a default assembly resolution mechanism for .NET assemblies.
Inheritance: INetAssemblyResolver
Afficher le fichier Open project: JerreS/AsmResolver

Méthodes publiques

Méthode Description
ClearCache ( ) : void

Clears the assembly resolution cache.

ResolveAssembly ( IAssemblyDescriptor descriptor ) : AssemblyDefinition

Méthodes protégées

Méthode 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

Méthode Description
DefaultNetAssemblyResolver ( ) : System
GetGacDirectories ( string assemblyDirectory, bool is40 ) : IEnumerable

Method Details

ClearCache() public méthode

Clears the assembly resolution cache.
public ClearCache ( ) : void
Résultat void

GetFilePath() protected méthode

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.
Résultat string

OnAssemblyResolutionFailed() protected méthode

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.
Résultat AssemblyDefinition

ReadAssembly() protected méthode

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.
Résultat WindowsAssembly

ResolveAssembly() public méthode

public ResolveAssembly ( IAssemblyDescriptor descriptor ) : AssemblyDefinition
descriptor IAssemblyDescriptor
Résultat AssemblyDefinition