简体   繁体   中英

Application timeout in ASP.NET Core 1

  1. Is there a way to set the application timeout in ASP.NET Core 1/MVC 6?
  2. What is the default time a site stays in memory without activity on the site, haven't been able to locate documentation on this?

I can see when the site spins up from the text log of the stdout but I'm not sure when it goes down or how I can extend (or shrink) that number programatically.

  1. Is there a way to set the application timeout in ASP.NET Core 1/MVC 6?

I don't think so. Application timeouts would be set by the host ( IIS example ).

  1. What is the default time a site stays in memory without activity on the site, haven't been able to locate documentation on this?

Again, this depends on the host. For IIS, the default time is 20 minutes. When you're debugging with Visual Studio, I'm not sure if it will timeout.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM