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

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Implementing the customers and orders microservices

Solution: Implementing the customers and orders microservices - Azure Tutorial

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

Start my 1-month free trial

Solution: Implementing the customers and orders microservices

- [Narrator] Let me show you how I managed to implement the customers and orders microservices. First, the customers microservice it's pretty similar to what we have done in the products microservice. First I create of these customers DB context class that inherits from Db context and exposes this customer's property. Also I created these customer entity that has the I'd property, the name, and the address for a given customer. Next, I created this I Customer Provider interface where I have the get customers async method and the get customer Acync method. The first one is for returning the whole catalog of customers and the second one is for returning just a single one. If we see these concrete implantation of the ICustomers provider interface, we can see that in the constructor, I'm injecting the customer's DB context object, along with the ILogger of type customers provider and the IMapper object. In addition to…

Contents