Browse Source
Merge pull request #14749 from abpframework/liangshiwei/blazorise
Use Default ComponentActivator for Blazorise
pull/15022/head
Halil İbrahim Kalkan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
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<IComponentActivator, ComponentActivator>()); |
|
|
|
context.Services.AddSingleton(typeof(AbpBlazorMessageLocalizerHelper<>)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |