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.
39 lines
1.1 KiB
39 lines
1.1 KiB
using Volo.Abp.Domain.Entities.Events.Distributed;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.Autofac;
|
|
using Volo.Abp.EventBus;
|
|
using Volo.Abp.RabbitMQ;
|
|
using Win_in.Sfs.Shared.Domain;
|
|
using Win_in.Sfs.Message.Domain;
|
|
using Win_in.Sfs.Message.Application;
|
|
using Win_in.Sfs.Shared.Event;
|
|
|
|
namespace Win_in.Sfs.Wms.Store.Event
|
|
{
|
|
|
|
[DependsOn(
|
|
typeof(MessageDomainModule),
|
|
typeof(SharedDomainModule),
|
|
typeof(AbpAutofacModule),
|
|
typeof(AbpRabbitMqModule),//默认Section名称为"RabbitMQ"
|
|
typeof(AbpEventBusModule),
|
|
typeof(MessageApplicationModule)
|
|
)]
|
|
public class MessageEventModule:AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
|
|
|
|
Configure<AbpDistributedEntityEventOptions>(options =>
|
|
{
|
|
options.AutoEventSelectors.AddAll();
|
|
options.AutoEventSelectors.Add<SystemMessage>();
|
|
options.EtoMappings.Add<SystemMessage, SystemMessageETO>();
|
|
|
|
}
|
|
);
|
|
|
|
}
|
|
}
|
|
}
|
|
|