C# Class PluginEngine.PluginManager

插件服务管理
Mostra file Open project: zhujunxxxxx/FastNetwork

Public Properties

Property Type Description
InnerPluginTypeList string>.Dictionary

Public Methods

Method Description
GetPlugins ( ) : PluginList

在指定的路径中查找服务提供者

GetPluginsInAssembly ( ) : PluginEngine.PluginInfo[]

获得内置的插件

GetPluginsInAssembly ( Assembly assembly ) : PluginEngine.PluginInfo[]

查找指定程序集中所有的服务类

GetPluginsInAssembly ( string assemblyPath ) : PluginEngine.PluginInfo[]

通过文件路径来查找所有服务

Private Methods

Method Description
PluginManager ( ) : System

Method Details

GetPlugins() public static method

在指定的路径中查找服务提供者
public static GetPlugins ( ) : PluginList
return PluginList

GetPluginsInAssembly() public static method

获得内置的插件
public static GetPluginsInAssembly ( ) : PluginEngine.PluginInfo[]
return PluginEngine.PluginInfo[]

GetPluginsInAssembly() public static method

查找指定程序集中所有的服务类
public static GetPluginsInAssembly ( Assembly assembly ) : PluginEngine.PluginInfo[]
assembly System.Reflection.Assembly
return PluginEngine.PluginInfo[]

GetPluginsInAssembly() public static method

通过文件路径来查找所有服务
public static GetPluginsInAssembly ( string assemblyPath ) : PluginEngine.PluginInfo[]
assemblyPath string
return PluginEngine.PluginInfo[]

Property Details

InnerPluginTypeList public_oe static_oe property

内置的插件类名映射字典
public static Dictionary InnerPluginTypeList
return string>.Dictionary