File: Internal\ISystemClock.cs | Web Access |
Project: src\src\libraries\Microsoft.Extensions.Caching.Abstractions\src\Microsoft.Extensions.Caching.Abstractions.csproj (Microsoft.Extensions.Caching.Abstractions) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; namespace Microsoft.Extensions.Internal { /// <summary> /// Abstracts the system clock to facilitate testing. /// </summary> public interface ISystemClock { /// <summary> /// Retrieves the current system time in UTC. /// </summary> DateTimeOffset UtcNow { get; } } } |