jellyfin/Emby.Dlna/ConfigurationExtension.cs

30 lines
776 B
C#
Raw Normal View History

using System.Collections.Generic;
2018-09-12 10:26:21 -07:00
using Emby.Dlna.Configuration;
2019-01-13 12:16:19 -07:00
using MediaBrowser.Common.Configuration;
2016-10-29 15:22:20 -07:00
2016-10-29 15:34:54 -07:00
namespace Emby.Dlna
2016-10-29 15:22:20 -07: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 10:26:21 -07:00
return new ConfigurationStore[]
2016-10-29 15:22:20 -07:00
{
new ConfigurationStore
{
Key = "dlna",
ConfigurationType = typeof (DlnaOptions)
}
};
}
}
}