Update BasePlugin.cs

This commit is contained in:
BaronGreenback 2020-11-19 09:03:03 +00:00 committed by GitHub
parent be4e5eff9c
commit 3ffdcfdb80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,6 +271,19 @@ namespace MediaBrowser.Common.Plugins
XmlSerializer.SerializeToFile(config, ConfigurationFilePath);
}
}
/// <summary>
/// Saves the current configuration to the file system.
/// </summary>
public virtual void SaveConfiguration()
{
lock (_configurationSaveLock)
{
_directoryCreateFn(Path.GetDirectoryName(ConfigurationFilePath));
XmlSerializer.SerializeToFile(Configuration, ConfigurationFilePath);
}
}
/// <inheritdoc />
public virtual void UpdateConfiguration(BasePluginConfiguration configuration)