Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Practical Serverless and Microservices with C#

You're reading from   Practical Serverless and Microservices with C# Build resilient and secure microservices with the .NET stack and embrace serverless development in Azure

Arrow left icon
Product type Paperback
Published in Jul 2025
Publisher Packt
ISBN-13 9781836642015
Length 472 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Gabriel Baptista Gabriel Baptista
Author Profile Icon Gabriel Baptista
Gabriel Baptista
Francesco Abbruzzese Francesco Abbruzzese
Author Profile Icon Francesco Abbruzzese
Francesco Abbruzzese
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Demystifying Serverless Applications 2. Demystifying Microservices Applications FREE CHAPTER 3. Setup and Theory: Docker and Onion Architecture 4. Azure Functions and Triggers Available 5. Background Functions in Practice 6. IoT Functions in Practice 7. Microservices in Practice 8. Practical Microservices Organization with Kubernetes 9. Simplifying Containers and Kubernetes: Azure Container Apps, and Othert Tools 10. Security and Observability for Serverless and Microservices Applications 11. The Car Sharing App 12. Simplifying Microservices with .NET Aspire 13. Other Books You May Enjoy
14. Index

Using .NET Aspire in practice

In this section, we will adapt the Kubernetes example of Chapter 8, Practical Microservices Organization with Kubernetes, to run with Aspire. As a first step, let’s copy the whole solution folder into another in a different location, so we can modify it without destroying the previous version.

Then, let’s execute the following steps to prepare the overall solution:

  1. Add a new App Host project to the solution and call it CarSharingAppHost.
  2. Add a new .NET Aspire Service Defaults project to the solution and call it CarSharingServiceDefaults.
  3. Add a reference to the FakeSource, FakeDestination, and RoutesPlanning projects to the CarSharingAppHost project.
  4. Add a reference to the CarSharingServiceDefaults project to the FakeSource, FakeDestination, and RoutesPlanning projects.
  5. Right-click on the CarSharingAppHost project and, in the menu that appears, select Set as Startup Project.

The preceding steps...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime