Home > Net >  c#: How to retrieve how much time is left before a timeout for an HTTP request in WebAPI operation m
c#: How to retrieve how much time is left before a timeout for an HTTP request in WebAPI operation m

Time:02-10

In a WebAPI controller method I want to calculate the time left before request timeout. But I cannot find the property to retrieve the timeout, so I could calculate.

I'm using .NET 6, and my controller extends to ControlerBase.

How to tackle that?

CodePudding user response:

  •  Tags:  
  • Related