Interface IPluginCache
Represents a plug-in cache, which is used to store plug-in state.
Namespace: Sdl.Core.PluginFramework
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public interface IPluginCache
Remarks
A default implementationm of this interface is available, XmlPluginCache: it stores plug-in state in an xml file.
Methods
GetPluginState(String)
Gets the plug-in state of the plug-in with the specified id.
Declaration
PluginState GetPluginState(string pluginId)
Parameters
| Type | Name | Description |
|---|---|---|
| String | pluginId | The id of the plug-in for which to get the state. |
Returns
| Type | Description |
|---|---|
| PluginState | A PluginState object containing the plug-in's state information. If no state information is found, a default state object is created. |
Save()
Saves the plug-in cache.
Declaration
void Save()
Remarks
This method is called automatically when the corresponding plug-in registry is disposed.
StorePluginState(IPlugin)
Stores the state of the specified plug-in in the plug-in cache.
Declaration
void StorePluginState(IPlugin plugin)
Parameters
| Type | Name | Description |
|---|---|---|
| IPlugin | plugin | The plug-in for which to store the state. |