mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 07:18:47 +01:00
Added the ability to reload the server and created a Plugins solution
This commit is contained in:
parent
f1770605ea
commit
fb88e4d5fc
@@ -6,30 +6,6 @@ using System.IO;
|
||||
|
||||
namespace MediaBrowser.Common.Plugins
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a BasePlugin with generics, allowing for strongly typed configuration access.
|
||||
/// </summary>
|
||||
public abstract class BaseGenericPlugin<TConfigurationType> : BasePlugin
|
||||
where TConfigurationType : BasePluginConfiguration, new()
|
||||
{
|
||||
public new TConfigurationType Configuration
|
||||
{
|
||||
get
|
||||
{
|
||||
return base.Configuration as TConfigurationType;
|
||||
}
|
||||
set
|
||||
{
|
||||
base.Configuration = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override Type ConfigurationType
|
||||
{
|
||||
get { return typeof(TConfigurationType); }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Provides a common base class for all plugins
|
||||
/// </summary>
|
||||
@@ -50,7 +26,10 @@ namespace MediaBrowser.Common.Plugins
|
||||
/// <summary>
|
||||
/// Gets the type of configuration this plugin uses
|
||||
/// </summary>
|
||||
public abstract Type ConfigurationType { get; }
|
||||
public virtual Type ConfigurationType
|
||||
{
|
||||
get { return typeof (BasePluginConfiguration); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the plugin version
|
||||
|
||||
Reference in New Issue
Block a user