2016-11-29 20:13:20 +01:00
|
|
|
|
|
2016-11-04 20:51:59 +01:00
|
|
|
|
namespace MediaBrowser.Model.System
|
|
|
|
|
{
|
|
|
|
|
public interface IEnvironmentInfo
|
|
|
|
|
{
|
|
|
|
|
MediaBrowser.Model.System.OperatingSystem OperatingSystem { get; }
|
|
|
|
|
string OperatingSystemName { get; }
|
|
|
|
|
string OperatingSystemVersion { get; }
|
2016-11-11 09:13:11 +01:00
|
|
|
|
Architecture SystemArchitecture { get; }
|
2016-11-13 22:04:21 +01:00
|
|
|
|
string GetEnvironmentVariable(string name);
|
2016-11-29 20:13:20 +01:00
|
|
|
|
void SetProcessEnvironmentVariable(string name, string value);
|
2016-11-13 22:04:21 +01:00
|
|
|
|
string GetUserId();
|
2016-11-21 09:54:53 +01:00
|
|
|
|
string StackTrace { get; }
|
2017-04-08 20:31:18 +02:00
|
|
|
|
char PathSeparator { get; }
|
2016-11-04 20:51:59 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum OperatingSystem
|
|
|
|
|
{
|
|
|
|
|
Windows,
|
|
|
|
|
Linux,
|
2017-02-07 09:23:45 +01:00
|
|
|
|
OSX,
|
|
|
|
|
BSD
|
2016-11-04 20:51:59 +01:00
|
|
|
|
}
|
|
|
|
|
}
|