mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.3 KiB
70 lines
2.3 KiB
using Localization.Resources.AbpUi;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Mvc.Localization;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
|
|
using Volo.Abp.FeatureManagement.Localization;
|
|
using Volo.Abp.FeatureManagement.Settings;
|
|
using Volo.Abp.Http.ProxyScripting.Generators.JQuery;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.SettingManagement.Web;
|
|
using Volo.Abp.SettingManagement.Web.Pages.SettingManagement;
|
|
using Volo.Abp.VirtualFileSystem;
|
|
|
|
namespace Volo.Abp.FeatureManagement;
|
|
|
|
[DependsOn(
|
|
typeof(AbpFeatureManagementApplicationContractsModule),
|
|
typeof(AbpAspNetCoreMvcUiThemeSharedModule),
|
|
typeof(AbpSettingManagementWebModule)
|
|
)]
|
|
public class AbpFeatureManagementWebModule : AbpModule
|
|
{
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options =>
|
|
{
|
|
options.AddAssemblyResource(
|
|
typeof(AbpFeatureManagementResource),
|
|
typeof(AbpFeatureManagementWebModule).Assembly,
|
|
typeof(AbpFeatureManagementApplicationContractsModule).Assembly
|
|
);
|
|
});
|
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder =>
|
|
{
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpFeatureManagementWebModule).Assembly);
|
|
});
|
|
}
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Get<AbpFeatureManagementResource>()
|
|
.AddBaseTypes(typeof(AbpUiResource));
|
|
});
|
|
|
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
|
{
|
|
options.FileSets.AddEmbedded<AbpFeatureManagementWebModule>();
|
|
});
|
|
|
|
Configure<RazorPagesOptions>(options =>
|
|
{
|
|
//Configure authorization.
|
|
});
|
|
|
|
Configure<DynamicJavaScriptProxyOptions>(options =>
|
|
{
|
|
options.DisableModule(FeatureManagementRemoteServiceConsts.ModuleName);
|
|
});
|
|
|
|
Configure<SettingManagementPageOptions>(options =>
|
|
{
|
|
options.Contributors.Add(new FeatureSettingManagementPageContributor());
|
|
});
|
|
}
|
|
}
|
|
|