C# Class Schumix.Framework.Addon.AddonManager

Class used to manage (load, unload, reload) plugins dynamically.
Inheritance: Schumix.Framework.Config.DefaultConfig
显示文件 Open project: Schumix/Schumix2

Public Properties

Property Type Description
Addons AddonBase>.Dictionary

Public Methods

Method Description
Initialize ( ) : void

Initializes the Plugin manager.

IsAddon ( string ServerName, string AddonName ) : bool
IsLoadingAddons ( ) : bool
LoadPluginsFromDirectory ( DirectoryInfo directory ) : bool

Loads plugins from the specified directory.

LoadPluginsFromDirectory ( string directory ) : bool

Loads plugins from the specified directory.

UnloadPlugins ( string ServerName = "" ) : bool

Unloads all addons.

Private Methods

Method Description
AddonManager ( ) : System
IsIgnore ( string Name, string ServerName ) : bool
SetupAppDomainDebugHandlers ( ) : void

Method Details

Initialize() public method

Initializes the Plugin manager.
public Initialize ( ) : void
return void

IsAddon() public method

public IsAddon ( string ServerName, string AddonName ) : bool
ServerName string
AddonName string
return bool

IsLoadingAddons() public method

public IsLoadingAddons ( ) : bool
return bool

LoadPluginsFromDirectory() public method

Loads plugins from the specified directory.
public LoadPluginsFromDirectory ( DirectoryInfo directory ) : bool
directory System.IO.DirectoryInfo The directory to check in
return bool

LoadPluginsFromDirectory() public method

Loads plugins from the specified directory.
public LoadPluginsFromDirectory ( string directory ) : bool
directory string The directory to check in
return bool

UnloadPlugins() public method

Unloads all addons.
public UnloadPlugins ( string ServerName = "" ) : bool
ServerName string
return bool

Property Details

Addons public_oe property

public Dictionary Addons
return AddonBase>.Dictionary