PM> Install-Package Shuttle.Core.System
OS and system level abstractions.
The default implementation is SystemClock
.
DateTimeOffset UtcNow { get; }
Return the DataTimeOffset
as the current UTC data/time.
The default implementation is EnvironmentService
.
bool UserInteractive { get; }
Return true
if running as a console application; else false
.
The default implementation is ProcessService
.
IProcess GetCurrentProcess();
Returns the IProcess
abstraction for the current process.
Represents a system process and the default implementation is SystemProcess
.
void Kill();
Kills the process.