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
As part of OpenIddict 5.3.0, I introduced built-in support for Microsoft.Extensions.Http.Resilience (on .NET 8.0+) and it's working beautifully (thanks for making ResilienceHandler public BTW, it wouldn't have been possible otherwise!).
One of the rules I enforce in OpenIddict is to always optimize the dependencies graph as much as possible and avoid referencing (directly or transitively) packages for which inbox assemblies are already offered in .NET. Unfortunately, it seems a few projects maintained here reference NuGet packages for which an inbox version in .NET 8.0 exists (for instance, System.Text.Json).
Here's the dependencies I get for OpenIddict.Validation.SystemNetHttp (FWIW, with 6M+ downloads, it's currently the most downloaded NuGet.org package that depends on the new HTTP resilience stack):
On .NET 7.0, that doesn't reference Microsoft.Extensions.Http.Resilience:
Some of them - like System.Threading.RateLimiting, not provided OOTB - are expected, but I think (at least) the following ones are not necessary and could be removed on .NET 8.0+:
Microsoft.Bcl.TimeProvider
System.Diagnostics.DiagnosticSource
System.Text.Encodings.Web
System.Text.Json
That would be nice if you could improve that in the next minor version 😃
Best regards.
The text was updated successfully, but these errors were encountered:
* Trim dependencies
- Enable the ReferenceTrimmer analyzer to make sure
the dependencies stay clean.
Fixes#5046
---------
Co-authored-by: Martin Taillefer <[email protected]>
Hey there 👋🏻
As part of OpenIddict 5.3.0, I introduced built-in support for
Microsoft.Extensions.Http.Resilience
(on .NET 8.0+) and it's working beautifully (thanks for makingResilienceHandler
public BTW, it wouldn't have been possible otherwise!).One of the rules I enforce in OpenIddict is to always optimize the dependencies graph as much as possible and avoid referencing (directly or transitively) packages for which inbox assemblies are already offered in .NET. Unfortunately, it seems a few projects maintained here reference NuGet packages for which an inbox version in .NET 8.0 exists (for instance,
System.Text.Json
).Here's the dependencies I get for
OpenIddict.Validation.SystemNetHttp
(FWIW, with 6M+ downloads, it's currently the most downloaded NuGet.org package that depends on the new HTTP resilience stack):On .NET 7.0, that doesn't reference
Microsoft.Extensions.Http.Resilience
:On .NET 8.0, that references
Microsoft.Extensions.Http.Resilience
:Some of them - like
System.Threading.RateLimiting
, not provided OOTB - are expected, but I think (at least) the following ones are not necessary and could be removed on .NET 8.0+:Microsoft.Bcl.TimeProvider
System.Diagnostics.DiagnosticSource
System.Text.Encodings.Web
System.Text.Json
That would be nice if you could improve that in the next minor version 😃
Best regards.
The text was updated successfully, but these errors were encountered: