From d564dd67865db62e5a2e9f0ed8df37258d433628 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 30 Sep 2013 11:15:47 -0400 Subject: [PATCH] #156 - Allow server to run as a service --- MediaBrowser.Model/System/SystemInfo.cs | 6 ++++++ MediaBrowser.ServerApplication/ApplicationHost.cs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Model/System/SystemInfo.cs b/MediaBrowser.Model/System/SystemInfo.cs index 9ef1618551..60d0564d83 100644 --- a/MediaBrowser.Model/System/SystemInfo.cs +++ b/MediaBrowser.Model/System/SystemInfo.cs @@ -14,6 +14,12 @@ namespace MediaBrowser.Model.System /// The version. public string Version { get; set; } + /// + /// Gets or sets the operating sytem. + /// + /// The operating sytem. + public string OperatingSystem { get; set; } + /// /// Gets or sets the mac address. /// diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs index c60ec7f6dd..6f099e7bb5 100644 --- a/MediaBrowser.ServerApplication/ApplicationHost.cs +++ b/MediaBrowser.ServerApplication/ApplicationHost.cs @@ -582,7 +582,8 @@ namespace MediaBrowser.ServerApplication Id = _systemId, ProgramDataPath = ApplicationPaths.ProgramDataPath, MacAddress = GetMacAddress(), - HttpServerPortNumber = ServerConfigurationManager.Configuration.HttpServerPortNumber + HttpServerPortNumber = ServerConfigurationManager.Configuration.HttpServerPortNumber, + OperatingSystem = Environment.OSVersion.ToString() }; }