NetworkConfigurationFactory.cs 790 B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. using MediaBrowser.Common.Configuration;
  3. namespace Jellyfin.Networking.Configuration
  4. {
  5. /// <summary>
  6. /// Defines the <see cref="NetworkConfigurationFactory" />.
  7. /// </summary>
  8. public class NetworkConfigurationFactory : IConfigurationFactory
  9. {
  10. /// <summary>
  11. /// The GetConfigurations.
  12. /// </summary>
  13. /// <returns>The <see cref="IEnumerable{ConfigurationStore}"/>.</returns>
  14. public IEnumerable<ConfigurationStore> GetConfigurations()
  15. {
  16. return new[]
  17. {
  18. new ConfigurationStore
  19. {
  20. Key = "network",
  21. ConfigurationType = typeof(NetworkConfiguration)
  22. }
  23. };
  24. }
  25. }
  26. }