You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to rebase #1144 for .NET 8 and to consume TimeProvider from NuGet (and use the new FakeTimeProvider implementation) things get complicated because there are various tests that rely on TimeProvider having a virtual CancelAfter() and Delay() method that can be overridden in the tests.
The real implementation instead has extension methods (which we can't mock) which are TimeProvider.Delay() and TimeProvider.CreateCancellationTokenSource().
To make the switch over for .NET 8 simpler, we should sync the current internal implementation to be source compatible with the .NET 8 rather than rely on methods which won't exist. That way, the tests will not need to change much and the switch over should be a lot cleaner.
The text was updated successfully, but these errors were encountered:
All above made as internal and in a single file to simplify the sharing. Once .NET 8 is out we can nuke it and just use the standard package on lower frameworks.
Attempting to rebase #1144 for .NET 8 and to consume
TimeProvider
from NuGet (and use the newFakeTimeProvider
implementation) things get complicated because there are various tests that rely onTimeProvider
having a virtualCancelAfter()
andDelay()
method that can be overridden in the tests.Polly/src/Polly.Core/ToBeRemoved/TimeProvider.cs
Lines 53 to 57 in a9bf3e9
The real implementation instead has extension methods (which we can't mock) which are
TimeProvider.Delay()
andTimeProvider.CreateCancellationTokenSource()
.To make the switch over for .NET 8 simpler, we should sync the current internal implementation to be source compatible with the .NET 8 rather than rely on methods which won't exist. That way, the tests will not need to change much and the switch over should be a lot cleaner.
The text was updated successfully, but these errors were encountered: