aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Networking/Configuration/NetworkConfigurationFactory.cs
blob: ac0485d8714f68aa454b203cc52113a3fe17e483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections.Generic;
using MediaBrowser.Common.Configuration;

namespace Jellyfin.Networking.Configuration
{
    /// <summary>
    /// Defines the <see cref="NetworkConfigurationFactory" />.
    /// </summary>
    public class NetworkConfigurationFactory : IConfigurationFactory
    {
        /// <summary>
        /// The GetConfigurations.
        /// </summary>
        /// <returns>The <see cref="IEnumerable{ConfigurationStore}"/>.</returns>
        public IEnumerable<ConfigurationStore> GetConfigurations()
        {
            return new[]
            {
                new ConfigurationStore
                {
                    Key = "network",
                    ConfigurationType = typeof(NetworkConfiguration)
                }
            };
        }
    }
}