From eeb667905a9ee2d04aa9a3762c122f2c9ecd90d8 Mon Sep 17 00:00:00 2001 From: qin <a@163.com> Date: 星期二, 18 三月 2025 13:49:32 +0800 Subject: [PATCH] 隐藏按钮方法 --- WebApi/HStation.WebApi.Xhs.Core/Startup.cs | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/WebApi/HStation.WebApi.Xhs.Core/Startup.cs b/WebApi/HStation.WebApi.Xhs.Core/Startup.cs index b2de701..2e5da1a 100644 --- a/WebApi/HStation.WebApi.Xhs.Core/Startup.cs +++ b/WebApi/HStation.WebApi.Xhs.Core/Startup.cs @@ -11,6 +11,7 @@ using Microsoft.Extensions.Hosting; using SqlSugar; using System.Text.Json.Serialization; +using Yw; using Yw.Application; namespace HStation.WebApi @@ -26,23 +27,30 @@ /// </summary> public void ConfigureServices(IServiceCollection services) { + LogHelper.Debug("1"); services.AddConfigurableOptions<Yw.JWT.JWTSettingsOptions>(); - + LogHelper.Debug("2"); services.Configure<KestrelServerOptions>(options => { options.Limits.MaxRequestBodySize = int.MaxValue; + options.Limits.MaxRequestBufferSize = int.MaxValue; + options.Limits.MaxResponseBufferSize = int.MaxValue; }); + LogHelper.Debug("3"); services.Configure<IISServerOptions>(options => { options.MaxRequestBodySize = int.MaxValue; + options.MaxRequestBodyBufferSize = int.MaxValue; }); - - // services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); + LogHelper.Debug("4"); + services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); + LogHelper.Debug("5"); //// 鎷︽埅鍣� services.AddMvcFilter<AuthorizationFilter>(); services.AddMvcFilter<ActionFilter>(); services.AddMvcFilter<ResultFilter>(); + LogHelper.Debug("6"); //闇�鍦� services.AddControllers() 涔嬪墠娉ㄥ唽 services.AddCorsAccessor(); @@ -77,7 +85,9 @@ }); // 娣诲姞鍗虫椂閫氳 services.AddSignalR(); + LogHelper.Debug("7"); SnowFlakeSingle.WorkId = Yw.Settings.SqlSugarParasHelper.SqlSugar.SnowFlakeWorkId; + LogHelper.Debug("娴嬭瘯service"); } /// <summary> @@ -85,6 +95,7 @@ /// </summary> public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { + LogHelper.Debug("0"); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); -- Gitblit v1.9.3