If you want to learn about Blazor WebAssembly and Dependency Injection in .NET, check out our online courses
.NET code examples
C# code examples and snippets for .NET
.NET Worker Service setup to run background tasks as a Windows Service
A .NET 6 Worker Service example running background tasks as hosted services, and setup to run as a Windows Service
.NET 6 Minimal APIs sample using ASP.NET Core
Download a ASP.NET Core Web API using .NET 6 Minimal APIs. No need for controllers, reducing boilerplate code.
Azure DevOps pipeline sample .NET project for CI/CD
A .NET project for use in the CI/CD setup of a Azure DevOps pipeline. This demo can be used for a build and release pipeline.
Blazor updates demo for .NET 6 using Visual Studio 2022
Download a Blazor updates demo for .NET 6. A Visual Studio 2022 application demos updates and new features for Blazor.
A Twitter dashboard written in .NET 5 that uses Blazor WebAssembly, an ASP.NET Core Web API and the Twitter API to get real-time tweets.
ASP.NET Core hosted service in .NET 6
Download a ASP.NET Core hosted example in .NET 6. It's added to the IServiceCollection and uses dependency injection.
EF Core 6 new feature samples and source code
Download a EF Core 6 sample for new features. See what's new as part of the .NET 6 update, including migration bundles.
Download a Blazor WebAssembly button onclick event example
Use a Blazor Wasm parameter to pass the onclick event to another Razor compoment and use it async. Download the source code.
ASP.NET Core Google Authentication Sample in MVC Application
A code tutorial for adding Google authentication into an ASP.NET Core 3.1 Web API, including details on how to install it.
Tic-Tac-Toe game in Blazor WebAssembly
Create Tic-Tac-Toe (Noughts & Crosses) using Blazor WebAssembly. This Blazor Wasm demo is built up with C# and Razor components.
Page 2 of 3
Learn Blazor WebAssembly with our online courses
Building your first Blazor WebAssembly app
Blazor WebAssembly: Foundation Skills
Advanced Blazor WebAssembly