File: Internal\SystemClock.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> /// Provides access to the normal system clock. /// </summary> public class SystemClock : ISystemClock { /// <summary> /// Retrieves the current system time in UTC. /// </summary> public DateTimeOffset UtcNow { get { return DateTimeOffset.UtcNow; } } } } |