|
@ -16,8 +16,10 @@ using Microsoft.AspNetCore.DataProtection; |
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
using Microsoft.AspNetCore.Http.Features; |
|
|
using Microsoft.AspNetCore.Http.Features; |
|
|
using Microsoft.AspNetCore.Mvc.ApiExplorer; |
|
|
using Microsoft.AspNetCore.Mvc.ApiExplorer; |
|
|
|
|
|
using Microsoft.AspNetCore.Server.Kestrel.Core; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Internal; |
|
|
using Microsoft.EntityFrameworkCore.Storage; |
|
|
using Microsoft.EntityFrameworkCore.Storage; |
|
|
using Microsoft.Extensions.Configuration; |
|
|
using Microsoft.Extensions.Configuration; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
@ -65,6 +67,16 @@ public abstract class ModuleBase<T> : AbpModule where T : AbpModule |
|
|
var cfg = context.Services.GetConfiguration(); |
|
|
var cfg = context.Services.GetConfiguration(); |
|
|
ServiceConfigurationContext.SetConsoleTitleOfWebApp(Assembly.GetEntryAssembly().GetName().Name); |
|
|
ServiceConfigurationContext.SetConsoleTitleOfWebApp(Assembly.GetEntryAssembly().GetName().Name); |
|
|
LimitedResultRequestDto.MaxMaxResultCount = 100000; |
|
|
LimitedResultRequestDto.MaxMaxResultCount = 100000; |
|
|
|
|
|
//接口请求限制
|
|
|
|
|
|
context.Services.Configure<KestrelServerOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.Limits.MaxRequestBodySize = int.MaxValue; |
|
|
|
|
|
}); |
|
|
|
|
|
context.Services.Configure<FormOptions>(x => |
|
|
|
|
|
{ |
|
|
|
|
|
x.ValueLengthLimit = int.MaxValue; |
|
|
|
|
|
x.MultipartBodyLengthLimit = int.MaxValue; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
//context.Services.AddAgileConfig();
|
|
|
//context.Services.AddAgileConfig();
|
|
|
PreConfigureServices(context); |
|
|
PreConfigureServices(context); |
|
|