C# Class JPB.Shell.MEF.Model.StrongNameCatalog

Inheritance: ComposablePartCatalog, INotifyComposablePartCatalogChanged
Afficher le fichier Open project: JPVenson/MSEF

Méthodes publiques

Méthode Description
AsyncInit ( ) : void
FreeAssambly ( Assembly assambly ) : void

Unloads a Assambly From the Mef Container. It does NOT unload it from the Domain

GetExports ( System.ComponentModel.Composition.Primitives.ImportDefinition definition ) : ExportDefinition>>.IEnumerable
StrongNameCatalog ( IEnumerable path, bool watchDirectorys ) : System

StrongNameCatalog Constructor

Use this Ctor to get all dll's that export anything in the spezific paths

Use the trustedKeys params to search for the Public Keys. Only Assambly with one of that keys will included Set #DEFINE SECLOADING to Compile this function

Private Methods

Méthode Description
CheckAndAddAssambly ( [ filename, ParallelLoopState state ) : void
CheckAndAddAssambly ( string filename, System.Action cancel ) : void
CreateWatcher ( string path ) : FileSystemWatcher
IsHandeld ( Exception e, string assamblyname ) : void

Simple helper

OnChanged ( object sender, FileSystemEventArgs e ) : void

Method Details

AsyncInit() public méthode

public AsyncInit ( ) : void
Résultat void

FreeAssambly() public méthode

Unloads a Assambly From the Mef Container. It does NOT unload it from the Domain
public FreeAssambly ( Assembly assambly ) : void
assambly System.Reflection.Assembly Your Target assambly
Résultat void

GetExports() public méthode

public GetExports ( System.ComponentModel.Composition.Primitives.ImportDefinition definition ) : ExportDefinition>>.IEnumerable
definition System.ComponentModel.Composition.Primitives.ImportDefinition
Résultat ExportDefinition>>.IEnumerable

StrongNameCatalog() public méthode

StrongNameCatalog Constructor

Use this Ctor to get all dll's that export anything in the spezific paths

Use the trustedKeys params to search for the Public Keys. Only Assambly with one of that keys will included Set #DEFINE SECLOADING to Compile this function

public StrongNameCatalog ( IEnumerable path, bool watchDirectorys ) : System
path IEnumerable The Paths to search
watchDirectorys bool Set this to True to enable the AutoWatch function
Résultat System