aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-30 11:15:47 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-30 11:15:47 -0400
commitd564dd67865db62e5a2e9f0ed8df37258d433628 (patch)
tree584cdc0a02cbe7f12e98e68b77cbf5e39bf537e7
parent29fd559f0a87dfe4667293251397f8a758a3c826 (diff)
#156 - Allow server to run as a service
-rw-r--r--MediaBrowser.Model/System/SystemInfo.cs6
-rw-r--r--MediaBrowser.ServerApplication/ApplicationHost.cs3
2 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Model/System/SystemInfo.cs b/MediaBrowser.Model/System/SystemInfo.cs
index 9ef161855..60d0564d8 100644
--- a/MediaBrowser.Model/System/SystemInfo.cs
+++ b/MediaBrowser.Model/System/SystemInfo.cs
@@ -15,6 +15,12 @@ namespace MediaBrowser.Model.System
public string Version { get; set; }
/// <summary>
+ /// Gets or sets the operating sytem.
+ /// </summary>
+ /// <value>The operating sytem.</value>
+ public string OperatingSystem { get; set; }
+
+ /// <summary>
/// Gets or sets the mac address.
/// </summary>
/// <value>The mac address.</value>
diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs
index c60ec7f6d..6f099e7bb 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()
};
}