5 changed files with 64 additions and 76 deletions
@ -1,32 +1,26 @@ |
|||||
using EShopOnAbp.BasketService; |
using EShopOnAbp.CatalogService.Products; |
||||
using EShopOnAbp.CatalogService.Products; |
|
||||
using Volo.Abp.AutoMapper; |
using Volo.Abp.AutoMapper; |
||||
using Volo.Abp.Domain; |
using Volo.Abp.Domain; |
||||
using Volo.Abp.Domain.Entities.Events.Distributed; |
using Volo.Abp.Domain.Entities.Events.Distributed; |
||||
using Volo.Abp.Modularity; |
using Volo.Abp.Modularity; |
||||
|
|
||||
namespace EShopOnAbp.CatalogService |
namespace EShopOnAbp.CatalogService; |
||||
|
|
||||
|
[DependsOn( |
||||
|
typeof(CatalogServiceDomainSharedModule), |
||||
|
typeof(AbpDddDomainModule), |
||||
|
typeof(AbpAutoMapperModule) |
||||
|
)] |
||||
|
public class CatalogServiceDomainModule : AbpModule |
||||
{ |
{ |
||||
[DependsOn( |
public override void ConfigureServices(ServiceConfigurationContext context) |
||||
typeof(CatalogServiceDomainSharedModule), |
|
||||
typeof(AbpDddDomainModule), |
|
||||
typeof(AbpAutoMapperModule), |
|
||||
typeof(BasketServiceDomainSharedModule) |
|
||||
)] |
|
||||
public class CatalogServiceDomainModule : AbpModule |
|
||||
{ |
{ |
||||
public override void ConfigureServices(ServiceConfigurationContext context) |
Configure<AbpAutoMapperOptions>(options => { options.AddMaps<CatalogServiceDomainModule>(validate: true); }); |
||||
|
|
||||
|
Configure<AbpDistributedEntityEventOptions>(options => |
||||
{ |
{ |
||||
Configure<AbpAutoMapperOptions>(options => |
options.AutoEventSelectors.Add<Product>(); |
||||
{ |
options.EtoMappings.Add<Product, ProductEto>(); |
||||
options.AddMaps<CatalogServiceDomainModule>(validate: true); |
}); |
||||
}); |
|
||||
|
|
||||
Configure<AbpDistributedEntityEventOptions>(options => |
|
||||
{ |
|
||||
options.AutoEventSelectors.Add<Product>(); |
|
||||
options.EtoMappings.Add<Product, ProductEto>(); |
|
||||
}); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
Loading…
Reference in new issue