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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Shuttle.Platform" Version="21.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shuttle.Platform" Version="21.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Shuttle.Platform" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Shuttle.Platform --version 21.0.1
                    
#r "nuget: Shuttle.Platform, 21.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Shuttle.Platform@21.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Shuttle.Platform&version=21.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Shuttle.Platform&version=21.0.1
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 183 4/15/2026
21.0.1-rc3 205 4/11/2026