diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-09 21:51:36 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-09 21:51:36 -0400 |
| commit | 34c5aab607fb5d9240a6286747a70a0b448e019b (patch) | |
| tree | e1c70188b360d65f1ef6d654aa2d6a82ebb98d0b /MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs | |
| parent | e56faea17a9c300299a6b088ca399abe4351b472 (diff) | |
3.2.12.2
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs')
| -rw-r--r-- | MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs b/MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs new file mode 100644 index 000000000..7f3e27d91 --- /dev/null +++ b/MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs @@ -0,0 +1,27 @@ +using System; +using System.Configuration; +using MediaBrowser.Common.Configuration; +using MediaBrowser.Model.Updates; + +namespace MediaBrowser.Server.Startup.Common +{ + public static class UpdateLevelHelper + { + public static PackageVersionClass GetSystemUpdateLevel(IConfigurationManager config) + { + return config.CommonConfiguration.SystemUpdateLevel; + //var configuredValue = ConfigurationManager.AppSettings["SystemUpdateLevel"]; + + //if (string.Equals(configuredValue, "Beta", StringComparison.OrdinalIgnoreCase)) + //{ + // return PackageVersionClass.Beta; + //} + //if (string.Equals(configuredValue, "Dev", StringComparison.OrdinalIgnoreCase)) + //{ + // return PackageVersionClass.Dev; + //} + + //return PackageVersionClass.Release; + } + } +} |
