diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-12-11 12:04:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-11 12:04:58 -0700 |
| commit | 4d1b8246513b352d65d4db6afcb97ae1e984c760 (patch) | |
| tree | cd7a3fe42e3ace4cfe0aa3268f5dcee29f855e43 /Jellyfin.Networking/Configuration/NetworkConfigurationStore.cs | |
| parent | fbc79cb4cee4fec27fd440127469f6dcdc1bc7c2 (diff) | |
| parent | a87b87825dac31f3739a8dc0254548c3e81a241e (diff) | |
Merge pull request #6902 from cvium/migrate_networkconfig
Migrate network configuration safely
Diffstat (limited to 'Jellyfin.Networking/Configuration/NetworkConfigurationStore.cs')
| -rw-r--r-- | Jellyfin.Networking/Configuration/NetworkConfigurationStore.cs | 24 |
1 files changed, 24 insertions, 0 deletions
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; + } + } +} |
