You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
839 B
33 lines
839 B
#pragma warning disable CS1591
|
|
#pragma warning disable SA1600
|
|
|
|
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)
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|