diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-08-31 18:28:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 18:28:11 +0200 |
| commit | 95142643f6c98fe4380c63ba9b3055fd3a637466 (patch) | |
| tree | 4c7df01672b511e4c6ebba4ccf65f763ddce82ca /MediaBrowser.Common | |
| parent | 4cc7406fe92b468f8a4257d7c40bf1e28f2a3404 (diff) | |
| parent | b37cc7bfaf51bd205d2251daf984b35bfaad98b2 (diff) | |
Merge pull request #3871 from Ullmie02/plugins-api
Allow plugins to define their own api endpoints
Diffstat (limited to 'MediaBrowser.Common')
| -rw-r--r-- | MediaBrowser.Common/IApplicationHost.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Common/IApplicationHost.cs b/MediaBrowser.Common/IApplicationHost.cs index 7a76be722..849037ac4 100644 --- a/MediaBrowser.Common/IApplicationHost.cs +++ b/MediaBrowser.Common/IApplicationHost.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Reflection; using System.Threading.Tasks; using MediaBrowser.Common.Plugins; using Microsoft.Extensions.DependencyInjection; @@ -77,6 +78,12 @@ namespace MediaBrowser.Common IReadOnlyList<IPlugin> Plugins { get; } /// <summary> + /// Gets all plugin assemblies which implement a custom rest api. + /// </summary> + /// <returns>An <see cref="IEnumerable{Assembly}"/> containing the plugin assemblies.</returns> + IEnumerable<Assembly> GetApiPluginAssemblies(); + + /// <summary> /// Notifies the pending restart. /// </summary> void NotifyPendingRestart(); |
