mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
30 lines
776 B
C#
30 lines
776 B
C#
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)
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|