-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Description
There is a comment in ISystemClock here:
FeatureManagement-Dotnet/src/Microsoft.FeatureManagement/FeatureFilters/ISystemClock.cs
Lines 9 to 18 in 31b0efc
| /// <summary> | |
| /// Abstracts the system clock to facilitate testing. | |
| /// .NET8 offers an abstract class TimeProvider. After we stop supporting .NET version less than .NET8, this ISystemClock should retire. | |
| /// </summary> | |
| internal interface ISystemClock | |
| { | |
| /// <summary> | |
| /// Retrieves the current system time in UTC. | |
| /// </summary> | |
| public DateTimeOffset UtcNow { get; } |
However this is not correct. The runtime provides a down-level package https://www.nuget.org/packages/Microsoft.Bcl.TimeProvider/ that allows TimeProvider to be used code using older versions of the runtime, or code that needs to support .NET standard.
zhiyuanliang-ms
Metadata
Metadata
Assignees
Labels
No labels