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.
40 lines
1.3 KiB
40 lines
1.3 KiB
using Microsoft.Extensions.DependencyInjection;
|
|
using Acme.BookStore.Localization.BookStore;
|
|
using Acme.BookStore.Settings;
|
|
using Volo.Abp.Identity;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Localization.Resources.AbpValidation;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.PermissionManagement.Identity;
|
|
using Volo.Abp.Settings;
|
|
using Volo.Abp.VirtualFileSystem;
|
|
|
|
namespace Acme.BookStore
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpIdentityDomainModule),
|
|
typeof(AbpPermissionManagementDomainIdentityModule))]
|
|
public class BookStoreDomainModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<VirtualFileSystemOptions>(options =>
|
|
{
|
|
options.FileSets.AddEmbedded<BookStoreDomainModule>();
|
|
});
|
|
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Add<BookStoreResource>("en")
|
|
.AddBaseTypes(typeof(AbpValidationResource))
|
|
.AddVirtualJson("/Localization/BookStore");
|
|
});
|
|
|
|
Configure<SettingOptions>(options =>
|
|
{
|
|
options.DefinitionProviders.Add<BookStoreSettingDefinitionProvider>();
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|