0

I found this in .NET 8 (prerelease) but I can't use it due to company policy.

https://learn.microsoft.com/en-us/aspnet/core/performance/timeouts?view=aspnetcore-8.0&viewFallbackFrom=aspnetcore-7.0

May I know how can I do the same in .NET core 7?

Jason Pan
  • 15,263
  • 1
  • 14
  • 29
s k
  • 4,342
  • 3
  • 42
  • 61

1 Answers1

0

I checked the Package: Microsoft.AspNetCore.App.Ref v8.0.0-preview.3.23177.8.

enter image description here

And find RequestTimeouts is the new feature in .Net 8. Currently not compatible with .Net 7 and cannot be used directly in .Net 7. If we need to achieve similar functions, we need to write custom middleware.

enter image description here

Jason Pan
  • 15,263
  • 1
  • 14
  • 29