Loads all available plugins and their types for service initialisation.
More...
|
string? | GetPluginDirectory (Assembly pluginAssembly) |
| Gets the install directory of the specified plugin. More...
|
|
bool | IsPluginAssembly (Assembly assembly) |
| Gets if the specified assembly is the primary assembly for a plugin. More...
|
|
bool | IsPluginLoaded (string pluginName) |
|
Assembly? | ResolveDependency (string pluginName, AssemblyName dependencyName) |
|
Loads all available plugins and their types for service initialisation.
◆ GetPluginDirectory()
string? Anvil.Plugins.PluginManager.GetPluginDirectory |
( |
Assembly |
pluginAssembly | ) |
|
|
inline |
Gets the install directory of the specified plugin.
- Parameters
-
pluginAssembly | The assembly of the plugin, e.g. typeof(MyService).Assembly |
- Returns
- The install directory for the specified plugin.
- Exceptions
-
ArgumentException | Thrown if the specified assembly is not a plugin. |
◆ IsPluginAssembly()
bool Anvil.Plugins.PluginManager.IsPluginAssembly |
( |
Assembly |
assembly | ) |
|
|
inline |
Gets if the specified assembly is the primary assembly for a plugin.
- Parameters
-
assembly | The assembly to query. |
- Returns
- True if the assembly is a plugin, otherwise false.
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/Plugins/PluginManager.cs