Shuttle.Platform
21.0.1
Prefix Reserved
dotnet add package Shuttle.Platform --version 21.0.1
NuGet\Install-Package Shuttle.Platform -Version 21.0.1
<PackageReference Include="Shuttle.Platform" Version="21.0.1" />
<PackageVersion Include="Shuttle.Platform" Version="21.0.1" />
<PackageReference Include="Shuttle.Platform" />
paket add Shuttle.Platform --version 21.0.1
#r "nuget: Shuttle.Platform, 21.0.1"
#:package Shuttle.Platform@21.0.1
#addin nuget:?package=Shuttle.Platform&version=21.0.1
#tool nuget:?package=Shuttle.Platform&version=21.0.1
Shuttle.Core.System
OS and system level abstractions that provide a way to decouple your logic from static system calls, making your code more testable.
Why?
When your code calls DateTimeOffset.UtcNow, Environment.UserInteractive, or Process.GetCurrentProcess(), it is difficult to unit test that code because these are static calls to the operating system. By using these abstractions, you can mock the system-level behavior in your tests.
Installation
dotnet add package Shuttle.Core.System
Usage
Register the services with your dependency injection container:
services.AddSingleton<ISystemClock, SystemClock>();
services.AddSingleton<IEnvironmentService, EnvironmentService>();
services.AddSingleton<IProcessService, ProcessService>();
All types are in the Shuttle.Core.System namespace.
ISystemClock
The default implementation is SystemClock.
DateTimeOffset UtcNow { get; }
Returns the DateTimeOffset representing the current UTC date/time.
IEnvironmentService
The default implementation is EnvironmentService.
bool UserInteractive { get; }
Returns true if running as a console application; otherwise false.
IProcessService
The default implementation is ProcessService.
IProcess GetCurrentProcess();
Returns an IProcess abstraction for the current system process.
IProcess
Represents a system process. The default implementation is SystemProcess.
void Kill();
Kills the process.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Shuttle.Contract (>= 21.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Shuttle.Platform:
| Package | Downloads |
|---|---|
|
Shuttle.Hopper
Hopper is a flexible enterprise service bus which works with Azure Storage Queues, Amazon SQS, RabbitMQ, Kafka, and Event Hubs through a provider plugin API. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 21.0.1 | 142 | 4/15/2026 |
| 21.0.1-rc3 | 173 | 4/11/2026 |