I am trying to subscribe from (Core.Notifications) to an event sent by (FirstClientApp), however it is not working These are the steps I have followed:
FirstClientApp:
Package installed : Volo.Abp.EventBus.RabbitMQ
In FirstClientApp.HttpApi.Host --> FirstClientAppHttpApiHostModule.cs , I added the following:
[DependsOn(typeof(AbpEventBusRabbitMqModule))]
In FirstClient.Application --> ProductsAppService.cs I injected
IDistributedEventBus
, then used it onCreateAsync
method like this:
await _distributedEventBus.PublishAsync(new ProductEto(product.Id, product.Name, product.Description, product.Price, product.FileId));
Core.Notifications
Package installed: Volo.Abp.EventBus.RabbitMQ
In Core.Notifications.HttpApi.Host --> NotificationsHttpApiHostModule.cs, I added the following:
[DependsOn(typeof(AbpEventBusRabbitMqModule))]
I added the following class on Core.Notifications.Application:
Breakpoint never hit.
What am I missing ??
1 Answer(s)
-
0
Solution is to have shared library between the services. ETO must be exactly the same.