C# Class NAnt.Core.Util.AssemblyResolver

显示文件 Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
AssemblyResolver ( ) : System

Initializes an instanse of the AssemblyResolver class.

AssemblyResolver ( NAnt.Core.Task task ) : System

Initializes an instanse of the AssemblyResolver class in the context of the given Task.

Attach ( ) : void

Installs the assembly resolver by hooking up to the AppDomain.AssemblyResolve event.

Detach ( ) : void

Uninstalls the assembly resolver.

Private Methods

Method Description
AssemblyLoad ( object sender, AssemblyLoadEventArgs args ) : void

Occurs when an assembly is loaded. The loaded assembly is added to the assembly cache.

AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly

Resolves an assembly not found by the system using the assembly cache.

Log ( Level messageLevel, string message ) : void

Logs a message with the given priority.

The actual logging is delegated to the Task in which the AssemblyResolver is executing

Method Details

AssemblyResolver() public method

Initializes an instanse of the AssemblyResolver class.
public AssemblyResolver ( ) : System
return System

AssemblyResolver() public method

Initializes an instanse of the AssemblyResolver class in the context of the given Task.
public AssemblyResolver ( NAnt.Core.Task task ) : System
task NAnt.Core.Task
return System

Attach() public method

Installs the assembly resolver by hooking up to the AppDomain.AssemblyResolve event.
public Attach ( ) : void
return void

Detach() public method

Uninstalls the assembly resolver.
public Detach ( ) : void
return void