From 113fa157fadbe82b1efa255b7b097b2d832d53a9 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Mon, 21 Nov 2022 16:23:31 +0800 Subject: [PATCH] Use Default ComponentActivator for Blazorise --- framework/src/Volo.Abp.BlazoriseUI/AbpBlazoriseUIModule.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.BlazoriseUI/AbpBlazoriseUIModule.cs b/framework/src/Volo.Abp.BlazoriseUI/AbpBlazoriseUIModule.cs index 5a66e1b247..198dce54fc 100644 --- a/framework/src/Volo.Abp.BlazoriseUI/AbpBlazoriseUIModule.cs +++ b/framework/src/Volo.Abp.BlazoriseUI/AbpBlazoriseUIModule.cs @@ -1,5 +1,7 @@ using Blazorise; +using Microsoft.AspNetCore.Components; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection.Extensions; using Volo.Abp.Application; using Volo.Abp.AspNetCore.Components.Web; using Volo.Abp.Authorization; @@ -11,7 +13,7 @@ namespace Volo.Abp.BlazoriseUI; typeof(AbpAspNetCoreComponentsWebModule), typeof(AbpDddApplicationContractsModule), typeof(AbpAuthorizationModule) - )] +)] public class AbpBlazoriseUIModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) @@ -27,6 +29,7 @@ public class AbpBlazoriseUIModule : AbpModule options.DebounceInterval = 800; }); + context.Services.Replace(ServiceDescriptor.Scoped()); context.Services.AddSingleton(typeof(AbpBlazorMessageLocalizerHelper<>)); } -} +} \ No newline at end of file