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 - Azure Tutorial
From the course: Azure Microservices with .NET Core for Developers
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Designing a microservices solution1m 31s
-
Creating a .NET Core solution for microservices6m 45s
-
(Locked)
Creating the database context for the products microservice4m 59s
-
(Locked)
Creating the products provider8m 45s
-
(Locked)
Obtaining all the products in the products microservice8m 23s
-
(Locked)
Obtaining a single product in the products microservice4m 25s
-
(Locked)
Challenge: Implementing the customers and orders microservices1m 18s
-
(Locked)
Solution: Implementing the customers and orders microservices5m 59s
-
(Locked)
-
-
-
-
-