142
CHAPTER 5 | Designing and Developing Multi-Container and Microservice-Based .NET Applications
ProductPriceChangedIntegrationEventHandler>();
eventBus.
Subscribe
OrderStartedIntegrationEventHandler>();
After this code runs, the subscriber microservice will be listening through RabbitMQ channels. When
any message of type ProductPriceChangedIntegrationEvent arrives, the code invokes the event
handler that is passed to it and processes the event.
Dostları ilə paylaş: