diff --git a/aspnet-core/frameworks/src/Lion.AbpPro.Starter/Lion/AbpPro/Starter/PreheatAbpProStarterContributor.cs b/aspnet-core/frameworks/src/Lion.AbpPro.Starter/Lion/AbpPro/Starter/PreheatAbpProStarterContributor.cs index f065a235..897dd06e 100644 --- a/aspnet-core/frameworks/src/Lion.AbpPro.Starter/Lion/AbpPro/Starter/PreheatAbpProStarterContributor.cs +++ b/aspnet-core/frameworks/src/Lion.AbpPro.Starter/Lion/AbpPro/Starter/PreheatAbpProStarterContributor.cs @@ -6,12 +6,13 @@ namespace Lion.AbpPro.Starter; public class PreheatAbpProStarterContributor : IAbpProStarterContributor, ITransientDependency { private readonly IHttpClientFactory _httpClientFactory; - private PreheatOptions _options; - private ILogger _logger; + private readonly PreheatOptions _options; + private readonly ILogger _logger; - public PreheatAbpProStarterContributor(IHttpClientFactory httpClientFactory, IOptions options) + public PreheatAbpProStarterContributor(IHttpClientFactory httpClientFactory, IOptions options, ILogger logger) { _httpClientFactory = httpClientFactory; + _logger = logger; _options = options.Value; } diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/AbpProHttpApiHostModule.cs b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/AbpProHttpApiHostModule.cs index 4e22ee7e..c9a56ca8 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/AbpProHttpApiHostModule.cs +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/AbpProHttpApiHostModule.cs @@ -1,3 +1,4 @@ +using Lion.AbpPro.Starter; using Volo.Abp.BlobStoring.FileSystem; using Volo.Abp.DistributedLocking; @@ -17,7 +18,8 @@ namespace Lion.AbpPro typeof(AbpAspNetCoreMvcUiBasicThemeModule), typeof(AbpCachingStackExchangeRedisModule), typeof(AbpDistributedLockingModule), - typeof(AbpBlobStoringFileSystemModule) + typeof(AbpBlobStoringFileSystemModule), + typeof(AbpProStarterModule) //typeof(AbpBackgroundJobsHangfireModule) )] public partial class AbpProHttpApiHostModule : AbpModule diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Lion.AbpPro.HttpApi.Host.csproj b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Lion.AbpPro.HttpApi.Host.csproj index 5e31a365..2ec7fdee 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Lion.AbpPro.HttpApi.Host.csproj +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Lion.AbpPro.HttpApi.Host.csproj @@ -46,6 +46,7 @@ + diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/appsettings.json b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/appsettings.json index 973fe4ac..531a631e 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/appsettings.json +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/appsettings.json @@ -74,5 +74,9 @@ }, "MiniProfiler": { "Enabled": false + }, + "Preheat": { + "Enabled": true, + "RequestUrl": "http://localhost:44315/api/abp/application-configuration?IncludeLocalizationResources=false" } } \ No newline at end of file