在Action Asp.net core 2.0中设置超时

问题描述 投票:0回答:1

如何在asp.net Core 2.0中设置超时?

一个请求不能超过1秒。如果返回超时需要一秒钟以上。

asp.net-core asp.net-core-2.0
1个回答
0
投票

您可以使用web.config进行设置requestTimeout="00:20:00"

<aspNetCore processPath="dotnet" arguments=".\WebApplication1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" requestTimeout="00:20:00" />
© www.soinside.com 2019 - 2024. All rights reserved.