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