From the course: Advanced Azure Microservices with .NET for Developers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Perform asynchronous communication using events - Azure Tutorial
From the course: Advanced Azure Microservices with .NET for Developers
Solution: Perform asynchronous communication using events
(upbeat music) - [Instructor] Let's see how we can solve the challenge. First off, we're going to add the pet transferred to hospital integration event class in the pet API project. So, right here in the integration events folder, I'm going to add a new class named, pet transferred to hospital integration event, and this is going to implement I integration event, and it will have the same properties as before. So, I'm going to paste them right here and we're good to go. Now, we need to handle the pet transferred to hospital domain event inside the pet application service class, actually is very similar to this code so I'm going to copy this and paste it, but instead of pet flagged for adoption, we're going to use pet transferred to hospital, and of course, this optics has to change to pet transferred to hospital integration event. Of course, we need to change the configuration values as well so I'm going to change these to…
Contents
-
-
-
Event-driven architecture primer4m 34s
-
Handling the domain event and creating the integration event4m 21s
-
(Locked)
Publishing the integration event to Azure Service Bus6m 37s
-
(Locked)
Consuming the integration event from Azure Service Bus6m 55s
-
(Locked)
Storing the data from the integration event5m 13s
-
(Locked)
Challenge: Perform asynchronous communication using events1m 4s
-
(Locked)
Solution: Perform asynchronous communication using events8m 11s
-
-
-
-
-
-