C# Class Open.Core.Common.Network.AssemblyLoader

Loads an assembly from the server into the application.
Inheritance: LoaderBase
显示文件 Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
AssemblyLoader ( string xapFileName ) : System

Constructor.

The XAP file will contain both the specific DLL you are looking to use along with the other dependencies the DLL has.

GetAssemblies ( ) : IEnumerable

Retrieves the set of loaded assemblies excluding Assemblies with the given prefixes.

StripExtensions ( string fileName ) : string

Strips XAP and DLL extensions from a file.

ToString ( ) : string

Protected Methods

Method Description
GetUri ( ) : Uri
OnLoadCallback ( TestableOpenReadCompletedEventArgs e ) : void
OnPreload ( ) : bool

Private Methods

Method Description
GetEntryPointAssembly ( System.Xml.Linq.XElement xDeploymentRoot ) : string
GetInfo ( Stream stream, string contentType, string uri ) : System.Windows.Resources.StreamResourceInfo
IncludeAssembly ( Assembly assembly, IEnumerable excludePrefix ) : bool

Method Details

AssemblyLoader() public method

Constructor.
The XAP file will contain both the specific DLL you are looking to use along with the other dependencies the DLL has.
public AssemblyLoader ( string xapFileName ) : System
xapFileName string The filename of the XAP to load.
return System

GetAssemblies() public method

Retrieves the set of loaded assemblies excluding Assemblies with the given prefixes.
public GetAssemblies ( ) : IEnumerable
return IEnumerable

GetUri() protected method

protected GetUri ( ) : Uri
return System.Uri

OnLoadCallback() protected method

OnPreload() protected method

protected OnPreload ( ) : bool
return bool

StripExtensions() public static method

Strips XAP and DLL extensions from a file.
public static StripExtensions ( string fileName ) : string
fileName string The file name to strip.
return string

ToString() public method

public ToString ( ) : string
return string