https://github.com/shuttle/shuttle.core.system
OS and system level abstractions.
https://github.com/shuttle/shuttle.core.system
Last synced: about 1 month ago
JSON representation
OS and system level abstractions.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.core.system
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2018-12-08T16:18:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-02T12:16:15.000Z (4 months ago)
- Last Synced: 2025-03-23T22:14:31.477Z (about 2 months ago)
- Language: C#
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shuttle.Core.System
```
PM> Install-Package Shuttle.Core.System
```OS and system level abstractions.
## ISystemClock
The default implementation is `SystemClock`.
``` c#
DateTimeOffset UtcNow { get; }
```Return the `DataTimeOffset` as the current UTC data/time.
## IEnvironmentService
The default implementation is `EnvironmentService`.
``` c#
bool UserInteractive { get; }
```Return `true` if running as a console application; else `false`.
## IProcessService
The default implementation is `ProcessService`.
``` c#
IProcess GetCurrentProcess();
```Returns the `IProcess` abstraction for the current process.
## IProcess
Represents a system process and the default implementation is `SystemProcess`.
``` c#
void Kill();
```Kills the process.