public async static Task InitializeApplicationAsync( [NotNull] this IAbpApplicationWithExternalServiceProvider application, [NotNull] IServiceProvider serviceProvider) { Check.NotNull(application, nameof(application)); Check.NotNull(serviceProvider, nameof(serviceProvider)); ((ComponentsClientScopeServiceProviderAccessor)serviceProvider .GetRequiredService <IClientScopeServiceProviderAccessor>()).ServiceProvider = serviceProvider; await application.InitializeAsync(serviceProvider); }