The static proxy in MVC does not need to expose application services.

pull/10820/head
maliming 4 years ago
parent 833a45f95a
commit e405c7e954
No known key found for this signature in database
GPG Key ID: 096224957E51C89E

@ -1,7 +1,12 @@
// 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
{
}

@ -1,7 +1,13 @@
// This file is part of AbpTenantClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
using Volo.Abp;
using Volo.Abp.DependencyInjection;
namespace Pages.Abp.MultiTenancy.ClientProxies
{
[RemoteService(false)]
[DisableConventionalRegistration]
public partial class AbpTenantClientProxy
{
}

@ -1,4 +1,6 @@
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;
@ -35,6 +37,9 @@ namespace Volo.Abp.AspNetCore.Mvc.Client
{
options.GlobalContributors.Add<RemoteLocalizationContributor>();
});
context.Services.AddTransient<AbpApplicationConfigurationClientProxy>();
context.Services.AddTransient<AbpTenantClientProxy>();
}
}
}

Loading…
Cancel
Save