2
0

NetworkConfigurationExtensions.cs 748 B

123456789101112131415161718192021
  1. using Jellyfin.Networking.Configuration;
  2. using MediaBrowser.Common.Configuration;
  3. namespace Jellyfin.Networking.Configuration
  4. {
  5. /// <summary>
  6. /// Defines the <see cref="NetworkConfigurationExtensions" />.
  7. /// </summary>
  8. public static class NetworkConfigurationExtensions
  9. {
  10. /// <summary>
  11. /// Retrieves the network configuration.
  12. /// </summary>
  13. /// <param name="config">The <see cref="IConfigurationManager"/>.</param>
  14. /// <returns>The <see cref="NetworkConfiguration"/>.</returns>
  15. public static NetworkConfiguration GetNetworkConfiguration(this IConfigurationManager config)
  16. {
  17. return config.GetConfiguration<NetworkConfiguration>("network");
  18. }
  19. }
  20. }