diff options
Diffstat (limited to 'Emby.Server.Implementations/Channels/ChannelConfigurations.cs')
| -rw-r--r-- | Emby.Server.Implementations/Channels/ChannelConfigurations.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Channels/ChannelConfigurations.cs b/Emby.Server.Implementations/Channels/ChannelConfigurations.cs new file mode 100644 index 000000000..ef0973e7f --- /dev/null +++ b/Emby.Server.Implementations/Channels/ChannelConfigurations.cs @@ -0,0 +1,29 @@ +using MediaBrowser.Common.Configuration; +using MediaBrowser.Model.Configuration; +using System.Collections.Generic; + +namespace Emby.Server.Implementations.Channels +{ + public static class ChannelConfigurationExtension + { + public static ChannelOptions GetChannelsConfiguration(this IConfigurationManager manager) + { + return manager.GetConfiguration<ChannelOptions>("channels"); + } + } + + public class ChannelConfigurationFactory : IConfigurationFactory + { + public IEnumerable<ConfigurationStore> GetConfigurations() + { + return new List<ConfigurationStore> + { + new ConfigurationStore + { + Key = "channels", + ConfigurationType = typeof (ChannelOptions) + } + }; + } + } +} |
