Anvil
Anvil.Services.PluginStorageService Class Reference

Manages plugin data stored in the Anvil home directory.
Use this service to get a path for reading and writing configs or data for your plugin. More...

Public Member Functions

 PluginStorageService (PluginManager pluginManager)
 
string GetPluginStoragePath (Assembly pluginAssembly)
 Gets the storage path for the specified plugin. More...
 

Detailed Description

Manages plugin data stored in the Anvil home directory.
Use this service to get a path for reading and writing configs or data for your plugin.

Member Function Documentation

◆ GetPluginStoragePath()

string Anvil.Services.PluginStorageService.GetPluginStoragePath ( Assembly  pluginAssembly)
inline

Gets the storage path for the specified plugin.

Parameters
pluginAssemblyThe assembly of the plugin, e.g. typeof(MyService).Assembly
Returns
The storage directory for the specified plugin.
Exceptions
ArgumentExceptionThrown if the specified assembly is not a plugin.

The documentation for this class was generated from the following file: