diff options
| author | cvium <clausvium@gmail.com> | 2021-11-24 13:42:14 +0100 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-11-24 13:42:14 +0100 |
| commit | 0485ff189948e4c0b6532e835b9f6740e89d0d40 (patch) | |
| tree | 870f1b925394d78047262966fcb20dcb4ab64c69 /Jellyfin.Networking/Configuration | |
| parent | 69df004b9f62cb65986607d659fde0dcc74004ab (diff) | |
Create a store key constant for network
Diffstat (limited to 'Jellyfin.Networking/Configuration')
| -rw-r--r-- | Jellyfin.Networking/Configuration/NetworkConfigurationFactory.cs | 6 | ||||
| -rw-r--r-- | Jellyfin.Networking/Configuration/NetworkConfigurationStore.cs | 24 |
2 files changed, 25 insertions, 5 deletions
diff --git a/Jellyfin.Networking/Configuration/NetworkConfigurationFactory.cs b/Jellyfin.Networking/Configuration/NetworkConfigurationFactory.cs index ac0485d87..14726565a 100644 --- a/Jellyfin.Networking/Configuration/NetworkConfigurationFactory.cs +++ b/Jellyfin.Networking/Configuration/NetworkConfigurationFactory.cs @@ -16,11 +16,7 @@ namespace Jellyfin.Networking.Configuration { return new[] { - new ConfigurationStore - { - Key = "network", - ConfigurationType = typeof(NetworkConfiguration) - } + new NetworkConfigurationStore() }; } } diff --git a/Jellyfin.Networking/Configuration/NetworkConfigurationStore.cs b/Jellyfin.Networking/Configuration/NetworkConfigurationStore.cs new file mode 100644 index 000000000..a268ebb68 --- /dev/null +++ b/Jellyfin.Networking/Configuration/NetworkConfigurationStore.cs @@ -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; + } + } +} |
