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.
37 lines
1.2 KiB
37 lines
1.2 KiB
using Volo.Abp.Identity.Localization;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Localization.ExceptionHandling;
|
|
using Volo.Abp.Localization.Resources.AbpValidation;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.Users;
|
|
using Volo.Abp.VirtualFileSystem;
|
|
|
|
namespace Volo.Abp.Identity
|
|
{
|
|
[DependsOn(typeof(AbpUsersDomainSharedModule))]
|
|
[DependsOn(typeof(AbpLocalizationModule))]
|
|
public class AbpIdentityDomainSharedModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
|
{
|
|
options.FileSets.AddEmbedded<AbpIdentityDomainSharedModule>();
|
|
});
|
|
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Add<IdentityResource>("en")
|
|
.AddBaseTypes(
|
|
typeof(AbpValidationResource)
|
|
).AddVirtualJson("/Volo/Abp/Identity/Localization");
|
|
});
|
|
|
|
Configure<AbpExceptionLocalizationOptions>(options =>
|
|
{
|
|
options.MapCodeNamespace("Volo.Abp.Identity", typeof(IdentityResource));
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|