mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-05 21:33:02 +02:00
31 lines
881 B
C#
31 lines
881 B
C#
|
#pragma warning disable CS1591
|
||
|
|
||
|
using System.Collections.Generic;
|
||
|
using MediaBrowser.Common.Configuration;
|
||
|
|
||
|
namespace Emby.Server.Implementations.QuickConnect
|
||
|
{
|
||
|
public static class ConfigurationExtension
|
||
|
{
|
||
|
public static QuickConnectConfiguration GetQuickConnectConfiguration(this IConfigurationManager manager)
|
||
|
{
|
||
|
return manager.GetConfiguration<QuickConnectConfiguration>("quickconnect");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class QuickConnectConfigurationFactory : IConfigurationFactory
|
||
|
{
|
||
|
public IEnumerable<ConfigurationStore> GetConfigurations()
|
||
|
{
|
||
|
return new ConfigurationStore[]
|
||
|
{
|
||
|
new ConfigurationStore
|
||
|
{
|
||
|
Key = "quickconnect",
|
||
|
ConfigurationType = typeof(QuickConnectConfiguration)
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|