Files
StarterNG/StarterNG/Infrastructure/Adapters/SystemEnvironment.cs
maj00r df21ec104f Cut the comments from the refactored code
Three survive: why AppServices is hand-wired, the cp1250 registration trap, and
the IsDieselEngine note carried over from Physics.cs.
2026-09-04 22:24:54 +02:00

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;
}