This commit is contained in:
2023-05-31 10:19:05 +08:00
parent 1b65a7a9e5
commit 9c621c75cd
238 changed files with 9905 additions and 4034 deletions

View File

@@ -7,15 +7,15 @@ public class WebComponent : IWebComponent
{
public void Load(WebApplicationBuilder builder, ComponentContext componentContext)
{
//// <20><>־<EFBFBD><D6BE><EFBFBD><EFBFBD>
builder.Host.UseWindowsService();
//// 日志过滤
//builder.Logging.AddFilter((provider, category, logLevel) =>
//{
// return !new[] { "Microsoft.Hosting", "Microsoft.AspNetCore" }.Any(u => category.StartsWith(u)) && logLevel >= LogLevel.Information;
//});
builder.Host.UseWindowsService();
builder.WebHost.ConfigureKestrel(options =>
{
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> null
// 长度最好不要设置 null
options.Limits.MaxRequestBodySize = 52428800;
});