ExtensionManager

Namespace: uModExtensions

Assembly: uMod.Core.dll

Inheritance Object ExtensionManager

Implements IExtensionManager, ISingleton, IContextManager<IExtension>

Summary

Responsible for managing all uMod extensions

Constructors

Name

Summary

ExtensionManager (ILogger)

Properties

Name

Summary

Logger

Gets the logger to which this extension manager writes

OnContextAdded

Called when an extension has been added

OnContextRemoved

Called when an extension has been removed

Methods

Name

Summary

AddContext (IExtension)

Add extension context to manager

GetChangeWatchers ()

Gets all plugin change watchers

GetExtension (String)

Gets the extension with the specified name

GetExtension<T> (String)

Gets the extension with the specified name

GetExtensions ()

Gets all loaded extensions

GetLibraries ()

Gets all library names

GetLibrary (String)

Gets the library by the specified name

GetLibraryNames ()

Gets all library names

GetPluginLoaders ()

Gets all plugin loaders

HasExtension (String)

Determine if an extension with the specified name is loaded

LoadExtension (String, Boolean)

Loads the extension at the specified filename

LoadExtension (IExtension, Boolean)

Loads the specified extension

LoadFrom (DirectoryInfo)

Loads all extensions in the specified directory

LoadFrom (String)

Loads all extensions in the specified directory

LoadFrom (String, Boolean)

Loads all extensions in the specified directory

RegisterChangeWatcher (IChangeWatcher)

Registers the specified change watcher

RegisterLibrary (String, ILibrary)

Registers the specified library

RegisterPluginLoader (IPluginLoader)

Registers the specified plugin loader

ReloadExtension (String)

Reloads the extension at the specified filename

ReloadExtension (IExtension)

Reloads the specified extension

RemoveAll ()

Removes all plugins from context manager

RemoveChangeWatcher (IChangeWatcher)

Removes the specified change watcher

RemoveContext (IExtension)

Remove extension context from manager

TryGetExtension (String, out IExtension)

Try to get an extension with the specified name

TryGetExtension<T> (String, out T)

UnloadExtension (String)

Unloads the extension at the specified filename

UnloadExtension (IExtension)

Unloads the specified extension

UnregisterPluginLoader (IPluginLoader)

Unregisters the specified plugin loader