From 993bfcaf1c165964ba34eefb9596aeae61c75afe Mon Sep 17 00:00:00 2001 From: WangJunZzz <510423039@qq.com> Date: Sun, 24 Mar 2024 20:40:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=97=A7=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E9=A2=84=E7=83=AD=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../host/Lion.AbpPro.HttpApi.Host/Startup.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Startup.cs b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Startup.cs index c8e3847f..d6487a25 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Startup.cs +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Startup.cs @@ -18,20 +18,6 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app,IHostApplicationLifetime lifetime) { app.InitializeApplication(); - lifetime.ApplicationStopped.Register(ConfigurePreheat); - } - - - /// - /// 程序首次访问接口速度慢,事先预热 - /// - [Obsolete("请使用Lion.AbpPro.Starter模块,实现IAbpProStarterContributor")] - private void ConfigurePreheat() - { - var url = _configuration.GetValue("App:SelfUrl"); - if (url.IsNullOrWhiteSpace()) return; - var requestUrl = $"{url}/api/abp/application-configuration"; - new HttpClient().GetAsync(requestUrl).Wait(); } } }