mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-04 21:32:53 +01:00
Fix some warnings
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
@@ -6,24 +8,25 @@ using MediaBrowser.Controller.Plugins;
|
||||
|
||||
namespace MediaBrowser.WebDashboard
|
||||
{
|
||||
public class ServerEntryPoint : IServerEntryPoint
|
||||
public sealed class ServerEntryPoint : IServerEntryPoint
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the list of plugin configuration pages
|
||||
/// </summary>
|
||||
/// <value>The configuration pages.</value>
|
||||
public List<IPluginConfigurationPage> PluginConfigurationPages { get; private set; }
|
||||
|
||||
private readonly IApplicationHost _appHost;
|
||||
|
||||
public static ServerEntryPoint Instance { get; private set; }
|
||||
|
||||
public ServerEntryPoint(IApplicationHost appHost)
|
||||
{
|
||||
_appHost = appHost;
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public static ServerEntryPoint Instance { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of plugin configuration pages.
|
||||
/// </summary>
|
||||
/// <value>The configuration pages.</value>
|
||||
public List<IPluginConfigurationPage> PluginConfigurationPages { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task RunAsync()
|
||||
{
|
||||
PluginConfigurationPages = _appHost.GetExports<IPluginConfigurationPage>().ToList();
|
||||
@@ -31,6 +34,7 @@ namespace MediaBrowser.WebDashboard
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user