Commit 92d63ac
committed
refactor: add ClockModule in Fitnet common clock
A new file named ClockModule.cs has been added within the Fitnet common clock namespace and a method called AddClock is established. The method, taking the IServiceCollection services as a parameter, returns the Singleton of the TimeProvider System. In addition, the TimeProvider instance injection in Program.cs has been replaced by AddClock().1 parent 0161eef commit 92d63ac
2 files changed
Lines changed: 9 additions & 1 deletion
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments