File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,9 +6,19 @@ PM> Install-Package Shuttle.Core.System
66
77OS and system level abstractions.
88
9+ ## ISystemClock
10+
11+ The default implementation is ` SystemClock ` .
12+
13+ ``` c#
14+ DateTimeOffset UtcNow { get ; }
15+ ```
16+
17+ Return the ` DataTimeOffset ` as the current UTC data/time.
18+
919## IEnvironmentService
1020
11- The default implement is ` EnvironmentService ` .
21+ The default implementation is ` EnvironmentService ` .
1222
1323``` c#
1424bool UserInteractive { get ; }
Original file line number Diff line number Diff line change 1+ using System ;
2+
3+ namespace Shuttle . Core . System
4+ {
5+ public interface ISystemClock
6+ {
7+ DateTimeOffset UtcNow { get ; }
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ using System ;
2+
3+ namespace Shuttle . Core . System
4+ {
5+ public class SystemClock : ISystemClock
6+ {
7+ public DateTimeOffset UtcNow => DateTimeOffset . UtcNow ;
8+ }
9+ }
Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ public class SystemProcess : IProcess
99
1010 public SystemProcess ( Process process )
1111 {
12- Guard . AgainstNull ( process , nameof ( process ) ) ;
13-
14- _process = process ;
12+ _process = Guard . AgainstNull ( process , nameof ( process ) ) ;
1513 }
1614
1715 public void Kill ( )
You can’t perform that action at this time.
0 commit comments