mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
30 lines
800 B
C#
30 lines
800 B
C#
|
using MediaBrowser.Common.Configuration;
|
|||
|
using MediaBrowser.Model.Configuration;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace MediaBrowser.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 List<ConfigurationStore>
|
|||
|
{
|
|||
|
new ConfigurationStore
|
|||
|
{
|
|||
|
Key = "dlna",
|
|||
|
ConfigurationType = typeof (DlnaOptions)
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|