mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
Three survive: why AppServices is hand-wired, the cp1250 registration trap, and the IsDieselEngine note carried over from Physics.cs.
18 lines
480 B
C#
18 lines
480 B
C#
using System;
|
|
using StarterNG.Application.Abstractions;
|
|
|
|
namespace StarterNG.Infrastructure.Adapters;
|
|
|
|
public sealed class SystemEnvironment : IEnvironment
|
|
{
|
|
public bool IsWindows => OperatingSystem.IsWindows();
|
|
|
|
public bool IsLinux => OperatingSystem.IsLinux();
|
|
|
|
public bool IsMacOS => OperatingSystem.IsMacOS();
|
|
|
|
public string? GetVariable(string name) => Environment.GetEnvironmentVariable(name);
|
|
|
|
public string BaseDirectory => AppContext.BaseDirectory;
|
|
}
|