|
|
@@ -6,13 +6,13 @@ public class WebComponent : IWebComponent
|
|
|
{
|
|
|
public void Load(WebApplicationBuilder builder, ComponentContext componentContext)
|
|
|
{
|
|
|
- // 设置日志过滤
|
|
|
+ // 璁剧疆鏃ュ織杩囨护
|
|
|
builder.Logging.AddFilter((provider, category, logLevel) =>
|
|
|
{
|
|
|
return !new[] { "Microsoft.Hosting", "Microsoft.AspNetCore" }.Any(u => category.StartsWith(u)) && logLevel >= LogLevel.Information;
|
|
|
});
|
|
|
|
|
|
- // 设置接口超时时间和上传大小
|
|
|
+ // 璁剧疆鎺ュ彛瓒呮椂鏃堕棿鍜屼笂浼犲ぇ灏�
|
|
|
builder.Configuration.Get<WebHostBuilder>().ConfigureKestrel(u =>
|
|
|
{
|
|
|
//u.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(30);
|