#156 - Allow server to run as a service

This commit is contained in:
Luke Pulverenti 2013-09-30 11:15:47 -04:00
parent 29fd559f0a
commit d564dd6786
2 changed files with 8 additions and 1 deletions

View file

@ -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>

View file

@ -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()
};
}