- Home
- .NET code examples
.NET code examples
![ASP.NET Core hosted service in .NET 6](/media/2mgggy4x/cover-1-2.png?width=350&height=197&v=1d9c588700d8a60)
![ASP.NET Core Google Authentication example in MVC application](/media/1rsbkwjn/create-a-project-in-google-cloud-platform-1.png?width=350&height=197&v=1d9c3ba501e32b0)
ASP.NET Core Google Authentication example 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.![Integrate SignalR inside a React app](/media/hcaj3swr/integrate-signalr-inside-a-react-app-1.png?width=350&height=197&v=1d9c39483601ab0)
Integrate SignalR inside a React app
An .NET 5 code example building a React app inside an ASP.NET Core application, with SignalR integration for sending messages.![.NET Worker Service setup to run background tasks as a Windows Service](/media/a5gdte5n/cover-800.png?width=350&height=197&v=1d9c58a186bffb0)
.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 7 code examples for ASP.NET Core](/media/540lc2dj/cover-500-2.png?width=350&height=197&v=1d9c6f4c3860380)
.NET 7 code examples for ASP.NET Core
A preview of what's new for the .NET 7 release, including code examples of ASP.NET Core features to download.![C# 11 features: Download samples](/media/dqqbqqlw/cover-1-4.png?width=350&height=197&v=1d9c6f1538ae5d0)
C# 11 features: Download samples
C# 11 features and sample to download. Preview the latest changes in a nutshell, and see what's new with .NET 7.![AppSettings.json example in .NET and C#](/media/kqtfno2x/cover-5.png?width=350&height=197&v=1d9c7752f2b2cc0)
AppSettings.json example in .NET and C#
Download our appsettings.json example which focuses on how to read a value, using ConnectionString, environment and logging.![Data Annotation custom validator in ASP.NET Core](/media/5czfwcjf/cover-article.png?width=350&height=197&v=1d9c6f91a0d35d0)
Data Annotation custom validator in ASP.NET Core
Download a Data Annotation custom validator written in C# that can be used in .NET with MVC and Web API for model validation.![A FromBody and FromQuery sample in ASP.NET Core Web API](/media/pdpn3141/cover.jpg?width=350&height=197&v=1d9c47679b684d0)
A FromBody and FromQuery sample in ASP.NET Core Web API
An ASP.NET Core example of using the FromBody and FromQuery attribute. Handy if your request is null, or getting a 415 error.![Download a Blazor WebAssembly button onclick event example](/media/21fpktf5/cover.png?width=350&height=197&v=1d9c4af7b9b3370)
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 code example.
Watch .NET tutorials
Subscribe to our YouTube channel