IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Static Helper classes to manage the assemblies. The instance is subscribed to the workpsace events and the AssemblyReferences to load it's modules to the container. More...
Public Member Functions | |
AssemblyLoader (CompositionContainer container, IEventAggregator eventAggregator) | |
void | Handle (WorkspaceOpeningEventArgs message) |
void | Handle (WorkspaceClosingEventArgs message) |
AssemblyLoader (CompositionContainer container, IEventAggregator eventAggregator) | |
void | Handle (WorkspaceOpeningEventArgs message) |
void | Handle (WorkspaceClosingEventArgs message) |
Static Public Member Functions | |
static string | GetAssemblyName (string fullName) |
static string[] | GetAssemblySearchFiles (IEnumerable< AssemblyReference > references) |
static string[] | GetAssemblySearchPaths (IEnumerable< AssemblyReference > references) |
static Assembly | LoadAssembly (AssemblyReference reference) |
static AssemblyName[] | GetGacAssemblyNames () |
static Assembly[] | GetGacAssemblies () |
Gets the assemblies in the GAC, the assemblies are loaded reflection only. More... | |
static string | GetGacAssemblyPath (AssemblyName assemblyName) |
static string | GetAssemblyName (string fullName) |
static string[] | GetAssemblySearchFiles (IEnumerable< AssemblyReference > references) |
static string[] | GetAssemblySearchPaths (IEnumerable< AssemblyReference > references) |
static Assembly | LoadAssembly (AssemblyReference reference) |
static AssemblyName[] | GetGacAssemblyNames () |
static Assembly[] | GetGacAssemblies () |
Gets the assemblies in the GAC, the assemblies are loaded reflection only. More... | |
static string | GetGacAssemblyPath (AssemblyName assemblyName) |
Private Member Functions | |
void | AssembliesOnCollectionChanged (object sender, NotifyCollectionChangedEventArgs args) |
void | AssemblyAdded (AssemblyReference assemblyReference) |
void | AssemblyRemoved (AssemblyReference assemblyReference) |
void | AssembliesOnCollectionChanged (object sender, NotifyCollectionChangedEventArgs args) |
void | AssemblyAdded (AssemblyReference assemblyReference) |
void | AssemblyRemoved (AssemblyReference assemblyReference) |
Private Attributes | |
readonly CompositionContainer | container |
readonly AggregateCatalog | catalog |
readonly ILog | log = LogManager.GetLog(typeof (AssemblyLoader)) |
readonly List< IModule > | loadedModules = new List<IModule>() |
readonly List< AssemblyReference > | loadedAssemblies = new List<AssemblyReference>() |
Static Private Attributes | |
static readonly Lazy < AssemblyName[]> | gacAssembyNames = new Lazy<AssemblyName[]>(() => Util.GlobalAssemblyCache.GetAssemblyList().ToArray(), true) |
static readonly Lazy< Assembly[]> | gacAssemblies |
Static Helper classes to manage the assemblies. The instance is subscribed to the workpsace events and the AssemblyReferences to load it's modules to the container.
|
inline |
References CShell.AssemblyLoader.container.
|
inline |
References CShell.AssemblyLoader.container.
|
inline |
|
inline |
|
inlineprivate |
References CShell.AssemblyLoader.AssemblyAdded(), and CShell.AssemblyLoader.AssemblyRemoved().
Referenced by CShell.AssemblyLoader.Handle().
|
inlineprivate |
|
inlineprivate |
References CShell.AssemblyReference.Assembly, and CShell.AssemblyReference.AssemblyCatalog.
Referenced by CShell.AssemblyLoader.AssembliesOnCollectionChanged(), and CShell.AssemblyLoader.Handle().
|
inlinestatic |
Referenced by CShell.AssemblyReferences.ResolveAssembly().
|
inlinestatic |
References CShell.AssemblyLoader.GetAssemblySearchPaths().
Referenced by CShell.AssemblyReferences.ResolveAssembly().
|
inlinestatic |
Referenced by CShell.AssemblyLoader.GetAssemblySearchFiles().
|
inlinestatic |
References CShell.AssemblyReference.AssemblyName, and CShell.AssemblyReference.FullPath.
|
inlinestatic |
|
inlinestatic |
Gets the assemblies in the GAC, the assemblies are loaded reflection only.
|
inlinestatic |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinestatic |
|
inlinestatic |
References CShell.AssemblyLoader.GetAssemblySearchPaths().
|
inlinestatic |
|
inlinestatic |
References CShell.AssemblyReference.AssemblyName, and CShell.AssemblyReference.FullPath.
|
inlinestatic |
|
inlinestatic |
Gets the assemblies in the GAC, the assemblies are loaded reflection only.
|
inlinestatic |
|
private |
Referenced by CShell.AssemblyLoader.AssemblyLoader().
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |