Create a store key constant for network

This commit is contained in:
cvium
2021-11-24 13:42:14 +01:00
parent 69df004b9f
commit 0485ff1899
5 changed files with 28 additions and 8 deletions

View File

@@ -16,11 +16,7 @@ namespace Jellyfin.Networking.Configuration
{
return new[]
{
new ConfigurationStore
{
Key = "network",
ConfigurationType = typeof(NetworkConfiguration)
}
new NetworkConfigurationStore()
};
}
}

View File

@@ -0,0 +1,24 @@
using MediaBrowser.Common.Configuration;
namespace Jellyfin.Networking.Configuration
{
/// <summary>
/// A configuration that stores network related settings.
/// </summary>
public class NetworkConfigurationStore : ConfigurationStore
{
/// <summary>
/// The name of the configuration in the storage.
/// </summary>
public const string StoreKey = "network";
/// <summary>
/// Initializes a new instance of the <see cref="NetworkConfigurationStore"/> class.
/// </summary>
public NetworkConfigurationStore()
{
ConfigurationType = typeof(NetworkConfiguration);
Key = StoreKey;
}
}
}