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.

Storing the data from the integration event

Storing the data from the integration event - Azure Tutorial

From the course: Advanced Azure Microservices with .NET for Developers

Storing the data from the integration event

- [Instructor] At this moment, we're receiving messages from the subscription set in Azure Service Bus. Now we'll start event data in the Rescue database because of that, we're going to create a new table named RescuedAnimalsMetadata that stores the Pet information that we're receiving. So let's jump right in. So here in Visual Studio, I'm going to open this RescueDbContext class, because we're going to have another property of type DbSet of PetFlaggedForAdoptionIntegrationEvent, which is a tag that we're receiving from Azure Service Bus. And this is going to be RescuedAnimalsMetadata. Excellent. So now let's open up these PetFlaggedForAdoptionIntegrationEventHandler class, because I want to add the RescuedAnimalsMetadata, and also I'm going to store the state of the RescuedAnimal that belongs to these Rescue domain model. This is important to remind you that you don't have to use the repository pattern always, also, I…

Contents