07cc4be6a7
* 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
32 lines
808 B
C#
32 lines
808 B
C#
#pragma warning disable CS1591
|
|
|
|
using System.Collections.Generic;
|
|
using Emby.Dlna.Configuration;
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
namespace Emby.Dlna
|
|
{
|
|
public static class ConfigurationExtension
|
|
{
|
|
public static DlnaOptions GetDlnaConfiguration(this IConfigurationManager manager)
|
|
{
|
|
return manager.GetConfiguration<DlnaOptions>("dlna");
|
|
}
|
|
}
|
|
|
|
public class DlnaConfigurationFactory : IConfigurationFactory
|
|
{
|
|
public IEnumerable<ConfigurationStore> GetConfigurations()
|
|
{
|
|
return new ConfigurationStore[]
|
|
{
|
|
new ConfigurationStore
|
|
{
|
|
Key = "dlna",
|
|
ConfigurationType = typeof (DlnaOptions)
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|