去除引用common.props
This commit is contained in:
@@ -1,27 +1,25 @@
|
||||
using JNPF.Common.Security;
|
||||
|
||||
Serve.Run(RunOptions.Default
|
||||
.AddWebComponent<WebComponent>().WithArgs(args));
|
||||
|
||||
public class WebComponent : IWebComponent
|
||||
{
|
||||
public void Load(WebApplicationBuilder builder, ComponentContext componentContext)
|
||||
{
|
||||
builder.Host.UseWindowsService();
|
||||
//// 日志过滤
|
||||
//builder.Logging.AddFilter((provider, category, logLevel) =>
|
||||
//{
|
||||
// return !new[] { "Microsoft.Hosting", "Microsoft.AspNetCore" }.Any(u => category.StartsWith(u)) && logLevel >= LogLevel.Information;
|
||||
//});
|
||||
builder.WebHost.ConfigureKestrel(options =>
|
||||
public void Load(WebApplicationBuilder builder, ComponentContext componentContext)
|
||||
{
|
||||
// 长度最好不要设置 null
|
||||
options.Limits.MaxRequestBodySize = 52428800;
|
||||
});
|
||||
builder.Host.UseWindowsService();
|
||||
//// 日志过滤
|
||||
//builder.Logging.AddFilter((provider, category, logLevel) =>
|
||||
//{
|
||||
// return !new[] { "Microsoft.Hosting", "Microsoft.AspNetCore" }.Any(u => category.StartsWith(u)) && logLevel >= LogLevel.Information;
|
||||
//});
|
||||
builder.WebHost.ConfigureKestrel(options =>
|
||||
{
|
||||
// 长度最好不要设置 null
|
||||
options.Limits.MaxRequestBodySize = 52428800;
|
||||
});
|
||||
|
||||
//builder.Logging.AddConsoleFormatter(options =>
|
||||
//{
|
||||
// options.DateFormat = "yyyy-MM-dd HH:mm:ss(zzz) dddd";
|
||||
//});
|
||||
}
|
||||
//builder.Logging.AddConsoleFormatter(options =>
|
||||
//{
|
||||
// options.DateFormat = "yyyy-MM-dd HH:mm:ss(zzz) dddd";
|
||||
//});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user