diff --git a/global.json b/global.json
index 1afce8dd954..65942b69c78 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "8.0.100-preview.3.23178.7",
+ "version": "8.0.100-preview.4.23260.5",
"allowPrerelease": false,
"rollForward": "latestMajor"
}
diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index ffbe1ae7774..f6964202bdc 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -4,6 +4,7 @@
+
@@ -23,13 +24,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/src/Polly.Core.Tests/CircuitBreaker/Controller/AdvancedCircuitBehaviorTests.cs b/src/Polly.Core.Tests/CircuitBreaker/Controller/AdvancedCircuitBehaviorTests.cs
index c671acd4d7b..dec245a536b 100644
--- a/src/Polly.Core.Tests/CircuitBreaker/Controller/AdvancedCircuitBehaviorTests.cs
+++ b/src/Polly.Core.Tests/CircuitBreaker/Controller/AdvancedCircuitBehaviorTests.cs
@@ -2,6 +2,7 @@
using Polly.CircuitBreaker;
using Polly.CircuitBreaker.Health;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests.CircuitBreaker.Controller;
diff --git a/src/Polly.Core.Tests/CircuitBreaker/Health/HealthMetricsTests.cs b/src/Polly.Core.Tests/CircuitBreaker/Health/HealthMetricsTests.cs
index db1d3e5d2de..0995281ad0a 100644
--- a/src/Polly.Core.Tests/CircuitBreaker/Health/HealthMetricsTests.cs
+++ b/src/Polly.Core.Tests/CircuitBreaker/Health/HealthMetricsTests.cs
@@ -2,6 +2,7 @@
using Polly.CircuitBreaker;
using Polly.CircuitBreaker.Health;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests.CircuitBreaker.Health;
diff --git a/src/Polly.Core.Tests/Hedging/HedgingActions.cs b/src/Polly.Core.Tests/Hedging/HedgingActions.cs
index 7fa78bb562a..3d4acac9d4c 100644
--- a/src/Polly.Core.Tests/Hedging/HedgingActions.cs
+++ b/src/Polly.Core.Tests/Hedging/HedgingActions.cs
@@ -1,5 +1,6 @@
using Polly.Hedging;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests.Hedging;
diff --git a/src/Polly.Core.Tests/Hedging/HedgingTimeProvider.cs b/src/Polly.Core.Tests/Hedging/HedgingTimeProvider.cs
index f2bddba91ff..3eebcdfd73d 100644
--- a/src/Polly.Core.Tests/Hedging/HedgingTimeProvider.cs
+++ b/src/Polly.Core.Tests/Hedging/HedgingTimeProvider.cs
@@ -1,6 +1,7 @@
using System;
using System.Threading.Tasks;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests.Hedging;
diff --git a/src/Polly.Core.Tests/Hedging/PrimaryStringTasks.cs b/src/Polly.Core.Tests/Hedging/PrimaryStringTasks.cs
index 8e86bbab11f..242acfd51a8 100644
--- a/src/Polly.Core.Tests/Hedging/PrimaryStringTasks.cs
+++ b/src/Polly.Core.Tests/Hedging/PrimaryStringTasks.cs
@@ -1,4 +1,5 @@
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests.Hedging;
diff --git a/src/Polly.Core.Tests/Helpers/FakeTimeProvider.cs b/src/Polly.Core.Tests/Helpers/FakeTimeProvider.cs
index 969d6992555..64b42d351c2 100644
--- a/src/Polly.Core.Tests/Helpers/FakeTimeProvider.cs
+++ b/src/Polly.Core.Tests/Helpers/FakeTimeProvider.cs
@@ -1,5 +1,6 @@
using Moq;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests.Helpers;
diff --git a/src/Polly.Core.Tests/ResilienceStrategyBuilderTests.cs b/src/Polly.Core.Tests/ResilienceStrategyBuilderTests.cs
index c74e647d791..4868b2117d0 100644
--- a/src/Polly.Core.Tests/ResilienceStrategyBuilderTests.cs
+++ b/src/Polly.Core.Tests/ResilienceStrategyBuilderTests.cs
@@ -2,6 +2,7 @@
using Moq;
using Polly.Strategy;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests;
diff --git a/src/Polly.Core.Tests/Utils/SystemTimeProviderTests.cs b/src/Polly.Core.Tests/Utils/SystemTimeProviderTests.cs
index 61aa0cf0e79..cdc44f8acf8 100644
--- a/src/Polly.Core.Tests/Utils/SystemTimeProviderTests.cs
+++ b/src/Polly.Core.Tests/Utils/SystemTimeProviderTests.cs
@@ -1,4 +1,5 @@
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests.Utils;
diff --git a/src/Polly.Core.Tests/Utils/TimeProviderExtensionsTests.cs b/src/Polly.Core.Tests/Utils/TimeProviderExtensionsTests.cs
index d2f98b1dbfb..c81e69f0723 100644
--- a/src/Polly.Core.Tests/Utils/TimeProviderExtensionsTests.cs
+++ b/src/Polly.Core.Tests/Utils/TimeProviderExtensionsTests.cs
@@ -1,4 +1,5 @@
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Core.Tests.Utils;
diff --git a/src/Polly.Core/CircuitBreaker/Controller/CircuitStateController.cs b/src/Polly.Core/CircuitBreaker/Controller/CircuitStateController.cs
index ab166eec747..80769c82499 100644
--- a/src/Polly.Core/CircuitBreaker/Controller/CircuitStateController.cs
+++ b/src/Polly.Core/CircuitBreaker/Controller/CircuitStateController.cs
@@ -1,4 +1,5 @@
using Polly.Strategy;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.CircuitBreaker;
diff --git a/src/Polly.Core/CircuitBreaker/Health/HealthMetrics.cs b/src/Polly.Core/CircuitBreaker/Health/HealthMetrics.cs
index 08aab7850be..458e7e87605 100644
--- a/src/Polly.Core/CircuitBreaker/Health/HealthMetrics.cs
+++ b/src/Polly.Core/CircuitBreaker/Health/HealthMetrics.cs
@@ -1,4 +1,5 @@
namespace Polly.CircuitBreaker.Health;
+using TimeProvider = Polly.Utils.TimeProvider;
///
/// The health metrics for advanced circuit breaker.
diff --git a/src/Polly.Core/CircuitBreaker/Health/RollingHealthMetrics.cs b/src/Polly.Core/CircuitBreaker/Health/RollingHealthMetrics.cs
index 658aea7b7b8..128e44ed8e8 100644
--- a/src/Polly.Core/CircuitBreaker/Health/RollingHealthMetrics.cs
+++ b/src/Polly.Core/CircuitBreaker/Health/RollingHealthMetrics.cs
@@ -1,4 +1,5 @@
namespace Polly.CircuitBreaker.Health;
+using TimeProvider = Polly.Utils.TimeProvider;
///
internal sealed class RollingHealthMetrics : HealthMetrics
diff --git a/src/Polly.Core/CircuitBreaker/Health/SingleHealthMetrics.cs b/src/Polly.Core/CircuitBreaker/Health/SingleHealthMetrics.cs
index 8afdd1470cc..56912c57d8b 100644
--- a/src/Polly.Core/CircuitBreaker/Health/SingleHealthMetrics.cs
+++ b/src/Polly.Core/CircuitBreaker/Health/SingleHealthMetrics.cs
@@ -1,4 +1,5 @@
using Polly;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.CircuitBreaker.Health;
diff --git a/src/Polly.Core/Hedging/Controller/HedgingController.cs b/src/Polly.Core/Hedging/Controller/HedgingController.cs
index 1cab2b0cfe8..10e65ca3a69 100644
--- a/src/Polly.Core/Hedging/Controller/HedgingController.cs
+++ b/src/Polly.Core/Hedging/Controller/HedgingController.cs
@@ -1,5 +1,6 @@
using Polly.Hedging.Controller;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Hedging.Utils;
diff --git a/src/Polly.Core/Hedging/Controller/HedgingExecutionContext.cs b/src/Polly.Core/Hedging/Controller/HedgingExecutionContext.cs
index 4c0f233a3fe..8b347c328b1 100644
--- a/src/Polly.Core/Hedging/Controller/HedgingExecutionContext.cs
+++ b/src/Polly.Core/Hedging/Controller/HedgingExecutionContext.cs
@@ -5,6 +5,7 @@
using Polly.Strategy;
using Polly.Utils;
using static Polly.Hedging.Utils.HedgingExecutionContext;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Hedging.Utils;
diff --git a/src/Polly.Core/Hedging/HedgingResilienceStrategy.cs b/src/Polly.Core/Hedging/HedgingResilienceStrategy.cs
index a4e0d3139d6..115bc269688 100644
--- a/src/Polly.Core/Hedging/HedgingResilienceStrategy.cs
+++ b/src/Polly.Core/Hedging/HedgingResilienceStrategy.cs
@@ -6,6 +6,7 @@
using Polly.Hedging.Utils;
using Polly.Strategy;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly;
diff --git a/src/Polly.Core/Hedging/HedgingResilienceStrategyBuilderExtensions.cs b/src/Polly.Core/Hedging/HedgingResilienceStrategyBuilderExtensions.cs
index 292b0cef93a..af574b24c08 100644
--- a/src/Polly.Core/Hedging/HedgingResilienceStrategyBuilderExtensions.cs
+++ b/src/Polly.Core/Hedging/HedgingResilienceStrategyBuilderExtensions.cs
@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using Polly.Hedging;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly;
diff --git a/src/Polly.Core/ResilienceStrategyBuilder.cs b/src/Polly.Core/ResilienceStrategyBuilder.cs
index 495f4184253..6f5cd92a89f 100644
--- a/src/Polly.Core/ResilienceStrategyBuilder.cs
+++ b/src/Polly.Core/ResilienceStrategyBuilder.cs
@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using Polly.Strategy;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly;
diff --git a/src/Polly.Core/Retry/RetryResilienceStrategy.cs b/src/Polly.Core/Retry/RetryResilienceStrategy.cs
index 6432e01c333..80b723d1b48 100644
--- a/src/Polly.Core/Retry/RetryResilienceStrategy.cs
+++ b/src/Polly.Core/Retry/RetryResilienceStrategy.cs
@@ -1,5 +1,6 @@
using System;
using Polly.Strategy;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Retry;
diff --git a/src/Polly.Core/Strategy/ResilienceStrategyBuilderContext.cs b/src/Polly.Core/Strategy/ResilienceStrategyBuilderContext.cs
index bce9a8b604b..fdc296ebd2f 100644
--- a/src/Polly.Core/Strategy/ResilienceStrategyBuilderContext.cs
+++ b/src/Polly.Core/Strategy/ResilienceStrategyBuilderContext.cs
@@ -1,4 +1,5 @@
using Polly.Telemetry;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Strategy;
diff --git a/src/Polly.Core/Timeout/TimeoutResilienceStrategy.cs b/src/Polly.Core/Timeout/TimeoutResilienceStrategy.cs
index 8fc889708fd..aa517f5d184 100644
--- a/src/Polly.Core/Timeout/TimeoutResilienceStrategy.cs
+++ b/src/Polly.Core/Timeout/TimeoutResilienceStrategy.cs
@@ -1,6 +1,7 @@
using System;
using System.Threading.Tasks;
using Polly.Strategy;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Timeout;
diff --git a/src/Polly.Core/Utils/TimeProvider.cs b/src/Polly.Core/Utils/TimeProvider.cs
index 467c2f21c7e..40cce7b68ee 100644
--- a/src/Polly.Core/Utils/TimeProvider.cs
+++ b/src/Polly.Core/Utils/TimeProvider.cs
@@ -1,4 +1,5 @@
using System.Threading;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Utils;
diff --git a/src/Polly.Extensions/Telemetry/TelemetryResilienceStrategy.cs b/src/Polly.Extensions/Telemetry/TelemetryResilienceStrategy.cs
index 5680219ddea..32ab3d93d1d 100644
--- a/src/Polly.Extensions/Telemetry/TelemetryResilienceStrategy.cs
+++ b/src/Polly.Extensions/Telemetry/TelemetryResilienceStrategy.cs
@@ -5,6 +5,7 @@
using Polly.Strategy;
using Polly.Telemetry;
using Polly.Utils;
+using TimeProvider = Polly.Utils.TimeProvider;
namespace Polly.Extensions.Telemetry;