Vixen
02b45cc4
csharp
public readonly record struct PlatformServices

The four services a per-OS assembly can do better than a portable one, in one value.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

One record rather than four properties on IPlatformSupplement because the supplement replaces some of them and keeps the rest, and passing the whole set in and out is what lets it say so in one expression — baseline with { Power = new MacOSPowerInfo(…) } — instead of four nullable factory methods whose results the caller has to recombine.

Fields and properties (5)

Methods (1)

Used by (8)

  • DesktopPlatformVixen.Platform.Desktop
  • DesktopSupplementTestsVixen.Platform.Desktop.Tests
  • IPlatformSupplementVixen.Platform
  • LinuxPlatformSupplementVixen.Platform.Linux
  • MacOSPlatformSupplementVixen.Platform.MacOS
  • MacOSSupplementTestsVixen.Platform.MacOS.Tests
  • RecordingSupplementVixen.Platform.Desktop.Tests
  • WindowsPlatformSupplementVixen.Platform.Windows