IEnvironmentInfo.cs 660 B

12345678910111213141516171819202122232425
  1. using System.Runtime.InteropServices;
  2. namespace MediaBrowser.Model.System
  3. {
  4. public interface IEnvironmentInfo
  5. {
  6. MediaBrowser.Model.System.OperatingSystem OperatingSystem { get; }
  7. string OperatingSystemName { get; }
  8. string OperatingSystemVersion { get; }
  9. Architecture SystemArchitecture { get; }
  10. string GetEnvironmentVariable(string name);
  11. void SetProcessEnvironmentVariable(string name, string value);
  12. string StackTrace { get; }
  13. char PathSeparator { get; }
  14. }
  15. public enum OperatingSystem
  16. {
  17. Windows,
  18. Linux,
  19. OSX,
  20. BSD,
  21. Android
  22. }
  23. }