public readonly record struct PlatformServicesThe 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)
public IClipboard ClipboardThe clipboard.
public INativeDialogs DialogsThe pickers and message boxes.
public IPowerInfo PowerBattery, thermal and power-mode state.
public IProcessorTopology ProcessorsProcessor counts, classes and affinity.
public PlatformCapabilities CapabilitiesWhat the platform can do with these services in place.
Methods (1)
public PlatformServices(IClipboard Clipboard, INativeDialogs Dialogs, IPowerInfo Power, IProcessorTopology Processors, PlatformCapabilities Capabilities)The four services a per-OS assembly can do better than a portable one, in one value.
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