diff --git a/Application/EdFi.Ods.Common/Utils/TimeProvider.cs b/Application/EdFi.Ods.Common/Utils/TimeProvider.cs deleted file mode 100644 index 18b3e3f423..0000000000 --- a/Application/EdFi.Ods.Common/Utils/TimeProvider.cs +++ /dev/null @@ -1,18 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -// Licensed to the Ed-Fi Alliance under one or more agreements. -// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -// See the LICENSE and NOTICES files in the project root for more information. - -using System; - -namespace EdFi.Ods.Common.Utils; - -// This class will be obsolete with .NET 8 and should be replaced. -public class TimeProvider -{ - protected TimeProvider(){} - - public virtual DateTimeOffset GetUtcNow() => DateTimeOffset.UtcNow; - - public static TimeProvider System { get; } = new(); -} diff --git a/Application/EdFi.Ods.Features/Notifications/Redis/InitializeRedisNotifications.cs b/Application/EdFi.Ods.Features/Notifications/Redis/InitializeRedisNotifications.cs index 49ff029979..edb11294b6 100644 --- a/Application/EdFi.Ods.Features/Notifications/Redis/InitializeRedisNotifications.cs +++ b/Application/EdFi.Ods.Features/Notifications/Redis/InitializeRedisNotifications.cs @@ -32,6 +32,7 @@ public InitializeRedisNotifications( _notificationsMessageSink = notificationsMessageSink; } + [Obsolete] public void Execute() { try