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.
59 lines
2.0 KiB
59 lines
2.0 KiB
2 years ago
|
using Volo.Abp.AuditLogging;
|
||
|
using Volo.Abp.BackgroundJobs;
|
||
|
using Volo.Abp.FeatureManagement;
|
||
|
using Volo.Abp.Identity;
|
||
|
using Volo.Abp.IdentityServer;
|
||
|
using Volo.Abp.Localization;
|
||
|
using Volo.Abp.Localization.ExceptionHandling;
|
||
|
using Volo.Abp.Modularity;
|
||
|
using Volo.Abp.PermissionManagement;
|
||
|
using Volo.Abp.SettingManagement;
|
||
|
using Volo.Abp.TenantManagement;
|
||
|
using Volo.Abp.Validation.Localization;
|
||
|
using Volo.Abp.VirtualFileSystem;
|
||
|
|
||
|
namespace Win_in.Sfs.Print.Domain.Shared
|
||
|
{
|
||
|
[DependsOn(
|
||
|
typeof(AbpAuditLoggingDomainSharedModule),
|
||
|
typeof(AbpBackgroundJobsDomainSharedModule),
|
||
|
typeof(AbpFeatureManagementDomainSharedModule),
|
||
|
typeof(AbpIdentityDomainSharedModule),
|
||
|
typeof(AbpIdentityServerDomainSharedModule),
|
||
|
typeof(AbpPermissionManagementDomainSharedModule),
|
||
|
typeof(AbpSettingManagementDomainSharedModule),
|
||
|
typeof(AbpTenantManagementDomainSharedModule)
|
||
|
)]
|
||
|
public class PrintDomainSharedModule : AbpModule
|
||
|
{
|
||
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
PrintGlobalFeatureConfigurator.Configure();
|
||
|
PrintModuleExtensionConfigurator.Configure();
|
||
|
}
|
||
|
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
||
|
{
|
||
|
options.FileSets.AddEmbedded<PrintDomainSharedModule>();
|
||
|
});
|
||
|
|
||
|
Configure<AbpLocalizationOptions>(options =>
|
||
|
{
|
||
|
options.Resources
|
||
|
.Add<PrintResource>("en")
|
||
|
.AddBaseTypes(typeof(AbpValidationResource))
|
||
|
.AddVirtualJson("/Localization/Print");
|
||
|
|
||
|
options.DefaultResourceType = typeof(PrintResource);
|
||
|
});
|
||
|
|
||
|
Configure<AbpExceptionLocalizationOptions>(options =>
|
||
|
{
|
||
|
options.MapCodeNamespace("Print", typeof(PrintResource));
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|