Method GetPluginDirectory
GetPluginDirectory(Assembly)
Gets the install directory of the specified plugin.
[Obsolete("Use GetPlugin().Path instead.")]
public string? GetPluginDirectory(Assembly pluginAssembly)
Parameters
pluginAssemblyAssemblyThe assembly of the plugin, e.g. typeof(MyService).Assembly
Returns
- string
The install directory for the specified plugin.
Exceptions
- ArgumentException
Thrown if the specified assembly is not a plugin.