From 34c5aab607fb5d9240a6286747a70a0b448e019b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 9 Apr 2017 21:51:36 -0400 Subject: 3.2.12.2 --- .../UpdateLevelHelper.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs (limited to 'MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs') 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; + } + } +} -- cgit v1.2.3