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.
37 lines
1.2 KiB
37 lines
1.2 KiB
using Volo.Abp.Modularity;
|
|
using Volo.Abp.Localization;
|
|
using Win_in.Sfs.Scp.Management.Localization;
|
|
using Volo.Abp.Localization.ExceptionHandling;
|
|
using Volo.Abp.Validation;
|
|
using Volo.Abp.Validation.Localization;
|
|
using Volo.Abp.VirtualFileSystem;
|
|
|
|
namespace Win_in.Sfs.Scp.Management
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpValidationModule)
|
|
)]
|
|
public class ManagementDomainSharedModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
|
{
|
|
options.FileSets.AddEmbedded<ManagementDomainSharedModule>();
|
|
});
|
|
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Add<ManagementResource>("en")
|
|
.AddBaseTypes(typeof(AbpValidationResource))
|
|
.AddVirtualJson("/Localization/Management");
|
|
});
|
|
|
|
Configure<AbpExceptionLocalizationOptions>(options =>
|
|
{
|
|
options.MapCodeNamespace("Management", typeof(ManagementResource));
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|