aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-04-20 23:49:50 -0400
committerGitHub <noreply@github.com>2017-04-20 23:49:50 -0400
commitf525f5a89e68248a81ab7cfdfa044fbe45e51863 (patch)
treef029e380a0867d6e8db7895e63d9a69e0cfd426f /MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs
parent5dca8cb077fb544628f62939bbda292d8c91b637 (diff)
parentb9fe720e736abacc57ffb846e4ce6644bc110f61 (diff)
Merge pull request #2591 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs')
-rw-r--r--MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs27
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;
+ }
+ }
+}