C# Class FlatRedBall.Glue.Plugins.PluginManagerBase

Exibir arquivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
HasFinishedInitialization bool

Protected Properties

Property Type Description
mError bool
mExternalAssemblies List
mGlobal bool
mGlobalInstance PluginManagerBase
mInstances List
mPluginContainers PluginContainer>.Dictionary
mProjectInstance PluginManagerBase
mReferenceListExternal List
mReferenceListInternal List
mReferenceListLoaded List

Public Methods

Method Description
GetGlobal ( ) : PluginManagerBase
GetInstances ( ) : List
GetProject ( ) : PluginManagerBase
LoadPlugins ( string pluginFolderInAppData, List pluginsToIgnore = null ) : bool
PluginManagerBase ( bool global ) : System
RegisterControlForPlugin ( Control control, IPlugin owner ) : void
ShutDownPlugin ( IPlugin pluginToShutDown ) : bool
ShutDownPlugin ( IPlugin pluginToShutDown, PluginShutDownReason shutDownReason ) : bool

Protected Methods

Method Description
AddDirectoriesForInstance ( List pluginDirectories ) : void
AddDisabledPlugin ( string folder ) : void
AddIfExists ( string absoluteName ) : void
CompilePluginError ( string problem ) : void
CompilePluginOutput ( string problem ) : void
InstantiateAllListsAsEmpty ( ) : void
LoadExternalReferenceList ( string filePath ) : void
LoadReferenceLists ( ) : void
PopulateCatalog ( PluginManagerBase instance, string pluginFolderInAppData, List pluginsToIgnore = null ) : bool
ShouldProcessPluginManager ( PluginCategories pluginCategories, PluginManagerBase pluginManager ) : bool
StartAllPlugins ( List pluginsToIgnore = null ) : void
StartupPlugin ( IPlugin plugin ) : void

Private Methods

Method Description
AddPluginsFromDirectory ( List pluginsToIgnore, System.ComponentModel.Composition.Hosting.AggregateCatalog returnValue, string plugin ) : void
CompilePlugin ( string filepath ) : CompilerResults
CreateCatalog ( string folderInAppData, List pluginsToIgnore = null ) : System.ComponentModel.Composition.Hosting.AggregateCatalog
GetPluginDirectories ( string folderInAppData ) : List
GetWhyIsntCompatible ( string filepath ) : string
HandleAddingDynamicallyCompiledPlugin ( System.ComponentModel.Composition.Hosting.AggregateCatalog returnValue, string plugin, CompilerResults compileResult ) : void
HandleAddingPreCompiledPluginInDirectory ( System.ComponentModel.Composition.Hosting.AggregateCatalog returnValue, string pluginDirectory ) : void
IsAssemblyAlreadyReferenced ( string assemblyName ) : bool
currentDomain_AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly

Method Details

AddDirectoriesForInstance() protected method

protected AddDirectoriesForInstance ( List pluginDirectories ) : void
pluginDirectories List
return void

AddDisabledPlugin() protected method

protected AddDisabledPlugin ( string folder ) : void
folder string
return void

AddIfExists() protected method

protected AddIfExists ( string absoluteName ) : void
absoluteName string
return void

CompilePluginError() protected method

protected CompilePluginError ( string problem ) : void
problem string
return void

CompilePluginOutput() protected method

protected CompilePluginOutput ( string problem ) : void
problem string
return void

GetGlobal() public static method

public static GetGlobal ( ) : PluginManagerBase
return PluginManagerBase

GetInstances() public static method

public static GetInstances ( ) : List
return List

GetProject() public static method

public static GetProject ( ) : PluginManagerBase
return PluginManagerBase

InstantiateAllListsAsEmpty() protected method

protected InstantiateAllListsAsEmpty ( ) : void
return void

LoadExternalReferenceList() protected method

protected LoadExternalReferenceList ( string filePath ) : void
filePath string
return void

LoadPlugins() public method

public LoadPlugins ( string pluginFolderInAppData, List pluginsToIgnore = null ) : bool
pluginFolderInAppData string
pluginsToIgnore List
return bool

LoadReferenceLists() protected method

protected LoadReferenceLists ( ) : void
return void

PluginManagerBase() public method

public PluginManagerBase ( bool global ) : System
global bool
return System

PopulateCatalog() protected static method

protected static PopulateCatalog ( PluginManagerBase instance, string pluginFolderInAppData, List pluginsToIgnore = null ) : bool
instance PluginManagerBase
pluginFolderInAppData string
pluginsToIgnore List
return bool

RegisterControlForPlugin() public method

public RegisterControlForPlugin ( Control control, IPlugin owner ) : void
control System.Windows.Forms.Control
owner IPlugin
return void

ShouldProcessPluginManager() protected static method

protected static ShouldProcessPluginManager ( PluginCategories pluginCategories, PluginManagerBase pluginManager ) : bool
pluginCategories PluginCategories
pluginManager PluginManagerBase
return bool

ShutDownPlugin() public static method

public static ShutDownPlugin ( IPlugin pluginToShutDown ) : bool
pluginToShutDown IPlugin
return bool

ShutDownPlugin() public static method

public static ShutDownPlugin ( IPlugin pluginToShutDown, PluginShutDownReason shutDownReason ) : bool
pluginToShutDown IPlugin
shutDownReason PluginShutDownReason
return bool

StartAllPlugins() protected method

protected StartAllPlugins ( List pluginsToIgnore = null ) : void
pluginsToIgnore List
return void

StartupPlugin() protected method

protected StartupPlugin ( IPlugin plugin ) : void
plugin IPlugin
return void

Property Details

HasFinishedInitialization public_oe property

public bool HasFinishedInitialization
return bool

mError protected_oe property

protected bool mError
return bool

mExternalAssemblies protected_oe property

protected List mExternalAssemblies
return List

mGlobal protected_oe property

protected bool mGlobal
return bool

mGlobalInstance protected_oe static_oe property

protected static PluginManagerBase,FlatRedBall.Glue.Plugins mGlobalInstance
return PluginManagerBase

mInstances protected_oe static_oe property

protected static List mInstances
return List

mPluginContainers protected_oe property

protected Dictionary mPluginContainers
return PluginContainer>.Dictionary

mProjectInstance protected_oe static_oe property

protected static PluginManagerBase,FlatRedBall.Glue.Plugins mProjectInstance
return PluginManagerBase

mReferenceListExternal protected_oe property

protected List mReferenceListExternal
return List

mReferenceListInternal protected_oe property

protected List mReferenceListInternal
return List

mReferenceListLoaded protected_oe property

protected List mReferenceListLoaded
return List