jellyfin/MediaBrowser.Model/Plugins/PluginStatus.cs

48 lines
1.4 KiB
C#
Raw Normal View History

2020-12-06 23:48:54 +00:00
namespace MediaBrowser.Model.Plugins
{
/// <summary>
/// Plugin load status.
/// </summary>
public enum PluginStatus
{
2020-12-15 10:05:04 +00:00
/// <summary>
/// This plugin requires a restart in order for it to load. This is a memory only status.
/// The actual status of the plugin after reload is present in the manifest.
2020-12-17 13:44:38 +00:00
/// eg. A disabled plugin will still be active until the next restart, and so will have a memory status of Restart,
2020-12-15 10:05:04 +00:00
/// but a disk manifest status of Disabled.
/// </summary>
2020-12-17 13:44:38 +00:00
Restart = 1,
2020-12-15 10:05:04 +00:00
/// <summary>
/// This plugin is currently running.
/// </summary>
2020-12-06 23:48:54 +00:00
Active = 0,
2020-12-15 10:05:04 +00:00
/// <summary>
/// This plugin has been marked as disabled.
/// </summary>
2020-12-06 23:48:54 +00:00
Disabled = -1,
2020-12-15 10:05:04 +00:00
/// <summary>
2020-12-18 21:05:27 +00:00
/// This plugin does not meet the TargetAbi requirements.
2020-12-15 10:05:04 +00:00
/// </summary>
2020-12-06 23:48:54 +00:00
NotSupported = -2,
2020-12-15 10:05:04 +00:00
/// <summary>
2021-12-24 17:28:27 +00:00
/// This plugin caused an error when instantiated (either DI loop, or exception).
2020-12-15 10:05:04 +00:00
/// </summary>
2020-12-17 13:44:38 +00:00
Malfunctioned = -3,
2020-12-15 10:05:04 +00:00
/// <summary>
/// This plugin has been superceded by another version.
/// </summary>
2020-12-14 23:08:04 +00:00
Superceded = -4,
2020-12-15 10:05:04 +00:00
/// <summary>
/// An attempt to remove this plugin from disk will happen at every restart.
/// It will not be loaded, if unable to do so.
/// </summary>
2020-12-17 13:44:38 +00:00
Deleted = -5
2020-12-06 23:48:54 +00:00
}
}