C# Класс JPB.Shell.MEF.Model.StrongNameCatalog

Наследование: ComposablePartCatalog, INotifyComposablePartCatalogChanged
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AsyncInit() публичный Метод

public AsyncInit ( ) : void
Результат void

FreeAssambly() публичный Метод

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
Результат void

GetExports() публичный Метод

public GetExports ( System.ComponentModel.Composition.Primitives.ImportDefinition definition ) : ExportDefinition>>.IEnumerable
definition System.ComponentModel.Composition.Primitives.ImportDefinition
Результат ExportDefinition>>.IEnumerable

StrongNameCatalog() публичный Метод

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
Результат System