-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes dependant on targetting 6.0 #1055
Comments
How about using Random.Shared in |
Note adding 6.0 support is independent from dropping 3.1 support. Are there any of these you think are prohibitive to #if light-up on 5.0 or 6.0 while still supporting 3.1? |
For #770 we should just wait to drop 3.1. For others it's actually that we need 6.0. |
Just move the ifdefs to extension methods that noop, it'll keep the code clean. It's the technique we use in Pipelines and Channels in the BCL.
You could do the same with TryReset and assume it always returns false. |
Fixed by #1271 |
Use PeriodicTimer. |
|
@Kahbazi where are you suggesting we should use |
Here
|
We are only using this within |
I assumed the overall performance might be better. |
List of known changes we should do in Yarp once adding a 6.0 target (and/or more convenient after dropping 3.1):
HttpContent.ReadAsStream*
Pass CancellationToken to HttpContent.ReadAsStreamAsync for .Net 5.0 #770CancellationTokenSource
pooling Pool CancellationTokenSources in 6.0+ #902ActivityPropagationHandler
in favour of theDistributedContextPropagator
that can be customized on a per-handler basis Allow specifying a context propagator on SocketsHttpHandler dotnet/runtime#55556RandomFactory
NameResolutionMetrics
to includecurrent-dns-lookups
Add current-dns-lookups counter to System.Net.NameResolution dotnet/runtime#49146WaitAsync
task timeout extensions instead ofTimeoutAfter
Feel free to add anything I may be missing
The text was updated successfully, but these errors were encountered: