C# Class StaticAnalysis.DependencyAnalyzer.AssemblyLoader

A class using .Net Remoting to load assemblies and retrieve information in a separate app domain
Inheritance: System.MarshalByRefObject
Datei anzeigen Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
GetReflectedAssemblyFromFile ( string assemblyPath ) : AssemblyMetadata

Load the assembly found at the given path in the reflection context and return assembly metadata

GetReflectedAssemblyInfo ( string assemblyName ) : AssemblyMetadata

Load the assembly in the reflection context by name. Will succeed if the referenced assembly name can be found using default assembly loading rules (i.e. it is in the current directory or the GAC)

Method Details

GetReflectedAssemblyFromFile() public method

Load the assembly found at the given path in the reflection context and return assembly metadata
public GetReflectedAssemblyFromFile ( string assemblyPath ) : AssemblyMetadata
assemblyPath string The full path to the assembly file.
return AssemblyMetadata

GetReflectedAssemblyInfo() public method

Load the assembly in the reflection context by name. Will succeed if the referenced assembly name can be found using default assembly loading rules (i.e. it is in the current directory or the GAC)
public GetReflectedAssemblyInfo ( string assemblyName ) : AssemblyMetadata
assemblyName string The full name of the assembly
return AssemblyMetadata