2020-01-22 21:00:07 +01:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
#pragma warning disable SA1600
|
|
|
|
|
2019-01-13 20:54:44 +01:00
|
|
|
using System.Collections.Generic;
|
2018-09-12 19:26:21 +02:00
|
|
|
using Emby.Dlna.Configuration;
|
2019-01-13 20:16:19 +01:00
|
|
|
using MediaBrowser.Common.Configuration;
|
2016-10-30 00:22:20 +02:00
|
|
|
|
2016-10-30 00:34:54 +02:00
|
|
|
namespace Emby.Dlna
|
2016-10-30 00:22:20 +02:00
|
|
|
{
|
|
|
|
public static class ConfigurationExtension
|
|
|
|
{
|
|
|
|
public static DlnaOptions GetDlnaConfiguration(this IConfigurationManager manager)
|
|
|
|
{
|
|
|
|
return manager.GetConfiguration<DlnaOptions>("dlna");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class DlnaConfigurationFactory : IConfigurationFactory
|
|
|
|
{
|
|
|
|
public IEnumerable<ConfigurationStore> GetConfigurations()
|
|
|
|
{
|
2018-09-12 19:26:21 +02:00
|
|
|
return new ConfigurationStore[]
|
2016-10-30 00:22:20 +02:00
|
|
|
{
|
|
|
|
new ConfigurationStore
|
|
|
|
{
|
|
|
|
Key = "dlna",
|
|
|
|
ConfigurationType = typeof (DlnaOptions)
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|