25 lines
639 B
C#
25 lines
639 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
|
|
namespace Microsoft.AspNetCore.ResponseCaching.Internal
|
|
{
|
|
/// <summary>
|
|
/// Provides access to the normal system clock.
|
|
/// </summary>
|
|
internal class SystemClock : ISystemClock
|
|
{
|
|
/// <summary>
|
|
/// Retrieves the current system time in UTC.
|
|
/// </summary>
|
|
public DateTimeOffset UtcNow
|
|
{
|
|
get
|
|
{
|
|
return DateTimeOffset.UtcNow;
|
|
}
|
|
}
|
|
}
|
|
}
|