Skip to content

This .NET Aspire workshop will get you started building apps with .NET Aspire!

License

Notifications You must be signed in to change notification settings

dotnet-presentations/dotnet-aspire-workshop

Repository files navigation

.NET Aspire Workshop

Come learn all about .NET Aspire, a new cloud ready stack for building observable, production ready, distributed applications.​ .NET Aspire can be added to any application regardless of the size and scale to help you build better applications faster.​

.NET Aspire streamlines app development with:

  • Orchestration: Use C# and familiar APIs to model your distributed application without a line of YAML. Easily add popular databases, messaging systems, and cloud services, connect them to your projects, and run locally with a single click.
  • Service Discovery: Automatic injection of the right connection strings or network configurations and service discovery information to simplify the developer experience.
  • Integrations: Built-in integrations for common cloud services like databases, queues, and storage. Configured for logging, health checks, telemetry, and more.
  • Dashboard: See live OpenTelemetry data with no configuration required. Launched by default on run, .NET Aspire's developer dashboard shows logs, environment variables, distributed traces, metrics and more to quickly verify app behavior.
  • Deployment: Easily produce a manifest of all the configuration your application resources require to run in production. Optionally, quickly and easily deploy to Azure Container Apps or Kubernetes using Aspire-aware tools.
  • So Much More: .NET Aspire is packed full of features that developers will love and help you be more productive.

Learn more about .NET Aspire with the following resources:

Localization

This workshop materials are available in the following languages:

You can also watch the Let's Learn .NET Aspire live stream events for the following languages:

Workshop

This .NET Aspire workshop is part of the Let's Learn .NET series. This workshop is designed to help you learn about .NET Aspire and how to use it to build cloud ready applications. This workshop is broken down into 6 modules:

  1. Setup & Installation
  2. Service Defaults
  3. Developer Dashboard & Orchestration
  4. Service Discovery
  5. Integrations
  6. Deployment

A full slide deck is available for this workshop here.

The starting project for this workshop is located in the start-with-api folder. This project is a simple weather API that uses the National Weather Service API to get weather data and a web frontend to display the weather data powered by Blazor.

This workshop is designed to be done in a 2 hour time frame.

Demo data

The data and service used for this tutorial comes from the United States National Weather Service (NWS) at https://weather.gov We are using their OpenAPI specification to query weather forecasts. The OpenAPI specification is available online. We are using only 2 methods of this API, and simplified our code to just use those methods instead of creating the entire OpenAPI client for the NWS API.