C# Class Zetbox.API.AssemblyLoader

This is the Assembly Loader. Assemblies are obtained by you configurated Assembly sources. Assemblies are copied to your WorkingFolder\bin directory. eg. C:\Users\Arthur\AppData\Local\dasz\Zetbox\Arthur's Configuration\Zetbox.Client.exe\bin.
ファイルを表示 Open project: daszat/zetbox Class Usage Examples

Public Methods

Method Description
Bootstrap ( AppDomain domain, ZetboxConfig config ) : void

Initializes the AssemblyLoader in the target AppDomain with a minimal search path.

EnsureInitialisation ( ZetboxConfig config ) : void
Load ( string name ) : Assembly

Loads an Assembly.

QualifySearchPath ( string path ) : string
ReflectionOnlyLoadFrom ( string name ) : Assembly

Loads an Assembly for Reflection only. This method does not cache the requested Assemblies.

Unload ( AppDomain domain ) : void

Private Methods

Method Description
AssemblyLoader ( ) : System
AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly

Called by the Framework to resolve an Assembly.

InitialiseSearchPath ( HostType type, bool loadGeneratedAssemblies ) : void
InitialiseTargetAssemblyFolder ( ZetboxConfig config ) : void
LoadAssemblyByName ( string name, bool reflectOnly ) : Assembly
LocateAssembly ( string baseName, System culture ) : string

Returns the actual filename of a DLL or EXE matching a given base assembly name. Uses the SearchPath.

PdbFromDll ( string dllFile ) : string
ReflectionOnlyAssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
Unload ( ) : void

Method Details

Bootstrap() public static method

Initializes the AssemblyLoader in the target AppDomain with a minimal search path.
public static Bootstrap ( AppDomain domain, ZetboxConfig config ) : void
domain System.AppDomain
config Zetbox.API.Configuration.ZetboxConfig
return void

EnsureInitialisation() public static method

public static EnsureInitialisation ( ZetboxConfig config ) : void
config Zetbox.API.Configuration.ZetboxConfig
return void

Load() public static method

Loads an Assembly.
public static Load ( string name ) : Assembly
name string Assemblyname, passed to a AssemblyName Constructor.
return System.Reflection.Assembly

QualifySearchPath() public static method

public static QualifySearchPath ( string path ) : string
path string
return string

ReflectionOnlyLoadFrom() public static method

Loads an Assembly for Reflection only. This method does not cache the requested Assemblies.
public static ReflectionOnlyLoadFrom ( string name ) : Assembly
name string Assemblyname, passed to a AssemblyName Consructor.
return System.Reflection.Assembly

Unload() public static method

public static Unload ( AppDomain domain ) : void
domain System.AppDomain
return void