Browse Source
Use static proxy to get `ApplicationConfiguration`.
pull/24894/head
maliming
8 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
3 changed files with
0 additions and
11 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.Client.Common/ClientProxies/AbpApplicationConfigurationClientProxy.cs
-
framework/src/Volo.Abp.AspNetCore.Mvc.Client.Common/ClientProxies/AbpTenantClientProxy.cs
-
framework/src/Volo.Abp.AspNetCore.Mvc.Client.Common/Volo/Abp/AspNetCore/Mvc/Client/AbpAspNetCoreMvcClientCommonModule.cs
|
|
|
@ -1,12 +1,9 @@ |
|
|
|
// This file is part of AbpApplicationConfigurationClientProxy, you can customize it here
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
|
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ClientProxies; |
|
|
|
|
|
|
|
[RemoteService(false)] |
|
|
|
[DisableConventionalRegistration] |
|
|
|
public partial class AbpApplicationConfigurationClientProxy |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
@ -2,13 +2,10 @@ |
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
|
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
|
|
|
|
namespace Pages.Abp.MultiTenancy.ClientProxies; |
|
|
|
|
|
|
|
[RemoteService(false)] |
|
|
|
[DisableConventionalRegistration] |
|
|
|
public partial class AbpTenantClientProxy |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1,6 +1,4 @@ |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Pages.Abp.MultiTenancy.ClientProxies; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ClientProxies; |
|
|
|
using Volo.Abp.Authorization; |
|
|
|
using Volo.Abp.Caching; |
|
|
|
using Volo.Abp.Features; |
|
|
|
@ -39,9 +37,6 @@ public class AbpAspNetCoreMvcClientCommonModule : AbpModule |
|
|
|
options.GlobalContributors.Add<RemoteLocalizationContributor>(); |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddTransient<AbpApplicationConfigurationClientProxy>(); |
|
|
|
context.Services.AddTransient<AbpTenantClientProxy>(); |
|
|
|
|
|
|
|
var abpClaimsPrincipalFactoryOptions = context.Services.ExecutePreConfiguredActions<AbpClaimsPrincipalFactoryOptions>(); |
|
|
|
if (abpClaimsPrincipalFactoryOptions.IsRemoteRefreshEnabled) |
|
|
|
{ |
|
|
|
|