From the course: Complete Guide to Dapr for .NET and Azure Developers: Building and Managing Microservices

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Implementing the service invocation logic

Implementing the service invocation logic

- [Instructor] Let's now implement the service invocation logic. So that's why I am going to add a new folder named Models, and inside Models, I'm going to add a new class named PetModel. So this is going to be a new record instead of a class. So I can use this record syntax to specify the different properties that I want for this record, so ID and then the pet name and the breed and so on. To expedite this process, I already have the code here, so I'm going to paste it, and we can see this entire PetModel record in the screen. Okay, so now I'm going to add a new rescue model class, RescueModel. And again, this is a record that I'm going to paste here. As you can see, this is modeling the RescueModel record. And finally, I'm going to add a new class named PatientModel. Just like before, this is another record for modeling a patient. So now we can open the PetAggregator controller class, and here, we're going to implement this entire Get method. First, I want to use the daprClient…

Contents