|
|
|
|
@ -7,6 +7,7 @@ using Volo.Abp.AspNetCore.Components.Web;
|
|
|
|
|
using Volo.Abp.AspNetCore.Components.Web.ExceptionHandling;
|
|
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Security;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.Client;
|
|
|
|
|
using Volo.Abp.DependencyInjection;
|
|
|
|
|
using Volo.Abp.Http.Client;
|
|
|
|
|
using Volo.Abp.Modularity;
|
|
|
|
|
using Volo.Abp.Threading;
|
|
|
|
|
@ -46,8 +47,8 @@ public class AbpAspNetCoreComponentsWebAssemblyModule : AbpModule
|
|
|
|
|
|
|
|
|
|
public async override Task OnApplicationInitializationAsync(ApplicationInitializationContext context)
|
|
|
|
|
{
|
|
|
|
|
await context.ServiceProvider.GetRequiredService<WebAssemblyCachedApplicationConfigurationClient>().InitializeAsync();
|
|
|
|
|
await context.ServiceProvider.GetRequiredService<AbpComponentsClaimsCache>().InitializeAsync();
|
|
|
|
|
await context.ServiceProvider.GetRequiredService<IClientScopeServiceProviderAccessor>().ServiceProvider.GetRequiredService<WebAssemblyCachedApplicationConfigurationClient>().InitializeAsync();
|
|
|
|
|
await context.ServiceProvider.GetRequiredService<IClientScopeServiceProviderAccessor>().ServiceProvider.GetRequiredService<AbpComponentsClaimsCache>().InitializeAsync();
|
|
|
|
|
await SetCurrentLanguageAsync(context.ServiceProvider);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|