mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
20 lines
660 B
C#
20 lines
660 B
C#
using MediaBrowser.Common.Configuration;
|
|
|
|
namespace MediaBrowser.Common.Net;
|
|
|
|
/// <summary>
|
|
/// Defines the <see cref="NetworkConfigurationExtensions" />.
|
|
/// </summary>
|
|
public static class NetworkConfigurationExtensions
|
|
{
|
|
/// <summary>
|
|
/// Retrieves the network configuration.
|
|
/// </summary>
|
|
/// <param name="config">The <see cref="IConfigurationManager"/>.</param>
|
|
/// <returns>The <see cref="NetworkConfiguration"/>.</returns>
|
|
public static NetworkConfiguration GetNetworkConfiguration(this IConfigurationManager config)
|
|
{
|
|
return config.GetConfiguration<NetworkConfiguration>(NetworkConfigurationStore.StoreKey);
|
|
}
|
|
}
|