فهرست منبع

#156 - Allow server to run as a service

Luke Pulverenti 11 سال پیش
والد
کامیت
d564dd6786
2فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 6 0
      MediaBrowser.Model/System/SystemInfo.cs
  2. 2 1
      MediaBrowser.ServerApplication/ApplicationHost.cs

+ 6 - 0
MediaBrowser.Model/System/SystemInfo.cs

@@ -14,6 +14,12 @@ namespace MediaBrowser.Model.System
         /// <value>The version.</value>
         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>

+ 2 - 1
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()
             };
         }