From 691a004d39f6a7cadd48aa2b2097a34f79ea1bf0 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 16 Jan 2012 23:17:00 -0800 Subject: [PATCH] Added SecurityProvider to deal with administrative tasks (Url Registering and FW Port Opening). --- NzbDrone.Common/EnviromentProvider.cs | 6 + NzbDrone.Common/NzbDrone.Common.csproj | 12 ++ NzbDrone.Common/SecurityProvider.cs | 213 +++++++++++++++++++++++++ NzbDrone/ApplicationServer.cs | 5 +- 4 files changed, 235 insertions(+), 1 deletion(-) create mode 100644 NzbDrone.Common/SecurityProvider.cs diff --git a/NzbDrone.Common/EnviromentProvider.cs b/NzbDrone.Common/EnviromentProvider.cs index 95c9e530f..39d0d84a9 100644 --- a/NzbDrone.Common/EnviromentProvider.cs +++ b/NzbDrone.Common/EnviromentProvider.cs @@ -142,6 +142,12 @@ namespace NzbDrone.Common } } + public virtual Version GetOsVersion() + { + OperatingSystem os = Environment.OSVersion; + Version version = os.Version; + return version; + } } } \ No newline at end of file diff --git a/NzbDrone.Common/NzbDrone.Common.csproj b/NzbDrone.Common/NzbDrone.Common.csproj index e08702976..fbfdc5348 100644 --- a/NzbDrone.Common/NzbDrone.Common.csproj +++ b/NzbDrone.Common/NzbDrone.Common.csproj @@ -63,12 +63,24 @@ + + + + {58FBCF7C-E7A9-467C-80B3-FC65E8FCCA08} + 1 + 0 + 0 + tlbimp + False + True + +