Skip to content

Getting Started

  • .NET 10 SDKDownload from Microsoft
  • Windows 10/11 — The daemon reads Windows-specific system metrics (CPU via PerformanceCounter, RAM via GlobalMemoryStatusEx)
  • Git (optional) — To clone the repository

LeaseGate-Lite is a multi-project .NET solution:

ProjectDescription
src/LeaseGateLite.ContractsShared DTOs and enums
src/LeaseGateLite.DaemonLocal API daemon on localhost:5177 with real Windows system metrics
src/LeaseGateLite.AppOne-tab MAUI control panel (Windows/Android/iOS/macCatalyst)
src/LeaseGateLite.TrayWindows system tray companion
tests/LeaseGateLite.Tests195 xUnit tests (config validation, simulation, diagnostics, redaction)
Terminal window
dotnet run --project src/LeaseGateLite.Daemon

The daemon starts on localhost:5177 and immediately begins collecting real system metrics (CPU via PerformanceCounter, RAM via GlobalMemoryStatusEx).

Terminal window
dotnet build src/LeaseGateLite.App -f net10.0-windows10.0.19041.0
dotnet run --project src/LeaseGateLite.App -f net10.0-windows10.0.19041.0

The MAUI app connects to the daemon automatically and displays live status.

Create a release artifact (portable zip + SHA256 checksum):

Terminal window
powershell -ExecutionPolicy Bypass -File scripts/package-v0.1.0.ps1 -Version 1.0.1

Install locally from the packaged artifact:

Terminal window
powershell -ExecutionPolicy Bypass -File scripts/install-local.ps1 -EnableAutostart

After installation:

  • The daemon runs immediately and can start on login
  • The control panel launches and connects automatically
  • Balanced is the default preset; laptop-like hardware gets a Quiet recommendation in first-run setup (never forced)
Terminal window
dotnet test tests/LeaseGateLite.Tests

All 195 tests use a FakeSystemMetrics provider via dependency injection for deterministic, hardware-independent verification.