Download a ASP.NET Core JWT authentication example allowing you to generate a Bearer token to authenticate a HTTP request.
Download a Data Annotation custom validator written in C# that can be used in .NET with MVC and Web API for model validation.
Download our appsettings.json example which focuses on how to read a value, using ConnectionString, environment and logging.
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.
Download & install this .NET code sample written in C# that uses a custom logging provider to log to a SQL Server database table
A .NET 6 Worker Service example running background tasks as hosted services, and setup to run as a Windows Service
Use a Blazor Wasm parameter to pass the onclick event to another Razor compoment and use it async. Download the code example.
An ASP.NET Core example of using the FromBody and FromQuery attribute. Handy if your request is null, or getting a 415 error.
Download the source code and read the appsettings.json file in an ASP.NET Core MVC application. Bind using the options pattern.
Writing dynamic queries for Entity Framework. A sample .NET 5 MVC application, showing examples of LINQ expressions.