由于项目业务需求,对于调用和请求接口A可能需要比较长的时候,比如10分钟,那么对于core默认2分钟的请求时间就不够用了
1、Core默认请求时间
默认请求时间是2分钟
2、Core在发布后自动生成web.config配置文件
web.config基础信息如下
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\自己项目的文件名称.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 4FDFC1EF-1486-4D2C-9775-EB2414BC9B9B-->
3、设置超时3分钟
通过设置3分钟来验证是否就是设置如下属性
设置标签aspNetCore,添加属性,requestTimeout="00:03:00"
- 接口效果如下