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.
34 lines
960 B
34 lines
960 B
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.Autofac;
|
|
using Volo.Abp.AutoMapper;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.RabbitMQ;
|
|
using Win_in.Sfs.Shared.Domain;
|
|
using Win_in.Sfs.Wms.Job.Domain;
|
|
|
|
namespace Win_in.Sfs.Wms.Job.Event;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAutoMapperModule),
|
|
typeof(JobDomainModule),
|
|
typeof(SharedDomainModule),
|
|
typeof(AbpAutofacModule),
|
|
typeof(AbpRabbitMqModule)//默认Section名称为"RabbitMQ"
|
|
)]
|
|
public class JobEventModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.AddAutoMapperObjectMapper<JobEventModule>();
|
|
Configure<AbpAutoMapperOptions>(options =>
|
|
{
|
|
options.AddMaps<JobEventModule>(validate: true);
|
|
});
|
|
// Configure<AbpDistributedEntityEventOptions>(options =>
|
|
// {
|
|
// options.AutoEventSelectors.AddAll();
|
|
// }
|
|
// );
|
|
|
|
}
|
|
}
|
|
|