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

Inheritance: ComposablePartCatalog, INotifyComposablePartCatalogChanged
Datei anzeigen Open project: JPVenson/MSEF

Public Methods

Method 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

Method 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 method

public AsyncInit ( ) : void
return void

FreeAssambly() public method

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
return void

GetExports() public method

public GetExports ( System.ComponentModel.Composition.Primitives.ImportDefinition definition ) : ExportDefinition>>.IEnumerable
definition System.ComponentModel.Composition.Primitives.ImportDefinition
return ExportDefinition>>.IEnumerable

StrongNameCatalog() public method

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
return System