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.
43 lines
1.7 KiB
43 lines
1.7 KiB
using Lion.AbpPro.BasicManagement;
|
|
using Lion.AbpPro.BasicManagement.Localization;
|
|
using Lion.AbpPro.Core;
|
|
using Lion.AbpPro.FileManagement;
|
|
using Lion.AbpPro.LanguageManagement;
|
|
|
|
namespace Lion.AbpPro
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpProCoreModule),
|
|
typeof(BasicManagementDomainSharedModule),
|
|
typeof(DataDictionaryManagementDomainSharedModule),
|
|
typeof(NotificationManagementDomainSharedModule),
|
|
typeof(LanguageManagementDomainSharedModule),
|
|
typeof(FileManagementDomainSharedModule)
|
|
)]
|
|
public class AbpProDomainSharedModule : AbpModule
|
|
{
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
AbpProGlobalFeatureConfigurator.Configure();
|
|
AbpProModuleExtensionConfigurator.Configure();
|
|
}
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded<AbpProDomainSharedModule>(AbpProDomainSharedConsts.NameSpace); });
|
|
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Add<AbpProResource>(AbpProDomainSharedConsts.DefaultCultureName)
|
|
.AddVirtualJson("/Localization/AbpPro")
|
|
.AddBaseTypes(typeof(BasicManagementResource))
|
|
.AddBaseTypes(typeof(AbpTimingResource));
|
|
|
|
options.DefaultResourceType = typeof(AbpProResource);
|
|
});
|
|
|
|
Configure<AbpExceptionLocalizationOptions>(options => { options.MapCodeNamespace(AbpProDomainSharedConsts.NameSpace, typeof(AbpProResource)); });
|
|
}
|
|
}
|
|
}
|