aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Plugins/IPlugin.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-08-16 17:25:14 -0400
committerPatrick Barron <barronpm@gmail.com>2020-08-16 17:25:14 -0400
commita77cf53573f95c5db27470bd0701c304f7a01c9e (patch)
treefbfc02bca7ef4e264636a95b7350ee5de38c95dd /MediaBrowser.Common/Plugins/IPlugin.cs
parent075ae53d831abdb4eb72aa7da575058a51d36753 (diff)
Allow plugins to register services.
Diffstat (limited to 'MediaBrowser.Common/Plugins/IPlugin.cs')
-rw-r--r--MediaBrowser.Common/Plugins/IPlugin.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Plugins/IPlugin.cs b/MediaBrowser.Common/Plugins/IPlugin.cs
index 7bd37d210..1844eb124 100644
--- a/MediaBrowser.Common/Plugins/IPlugin.cs
+++ b/MediaBrowser.Common/Plugins/IPlugin.cs
@@ -2,6 +2,7 @@
using System;
using MediaBrowser.Model.Plugins;
+using Microsoft.Extensions.DependencyInjection;
namespace MediaBrowser.Common.Plugins
{
@@ -61,6 +62,18 @@ namespace MediaBrowser.Common.Plugins
/// Called when just before the plugin is uninstalled from the server.
/// </summary>
void OnUninstalling();
+
+ /// <summary>
+ /// Registers the plugin's services to the service collection.
+ /// </summary>
+ /// <param name="serviceCollection">The service collection.</param>
+ void RegisterServices(IServiceCollection serviceCollection);
+
+ /// <summary>
+ /// Unregisters the plugin's services from the service collection.
+ /// </summary>
+ /// <param name="serviceCollection">The service collection.</param>
+ void UnregisterServices(IServiceCollection serviceCollection);
}
public interface IHasPluginConfiguration