Browse Source
Merge pull request #24894 from abpframework/AbpApplicationConfigurationClientProxy
Use static proxy to get `ApplicationConfiguration`.
pull/24920/head
oykuermann
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
2 additions and
13 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
-
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/AbpApplicationConfigurationScriptController.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) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -17,14 +17,14 @@ namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations; |
|
|
|
[ApiExplorerSettings(IgnoreApi = true)] |
|
|
|
public class AbpApplicationConfigurationScriptController : AbpController |
|
|
|
{ |
|
|
|
protected readonly AbpApplicationConfigurationAppService ConfigurationAppService; |
|
|
|
protected readonly IAbpApplicationConfigurationAppService ConfigurationAppService; |
|
|
|
protected readonly IJsonSerializer JsonSerializer; |
|
|
|
protected readonly AbpAspNetCoreMvcOptions Options; |
|
|
|
protected readonly IJavascriptMinifier JavascriptMinifier; |
|
|
|
protected readonly IAbpAntiForgeryManager AntiForgeryManager; |
|
|
|
|
|
|
|
public AbpApplicationConfigurationScriptController( |
|
|
|
AbpApplicationConfigurationAppService configurationAppService, |
|
|
|
IAbpApplicationConfigurationAppService configurationAppService, |
|
|
|
IJsonSerializer jsonSerializer, |
|
|
|
IOptions<AbpAspNetCoreMvcOptions> options, |
|
|
|
IJavascriptMinifier javascriptMinifier, |
|
|
|
|