Blog

Blog posts on .NET, Azure, and more.

Using Mongo DB EF Core provider in .NET Aspire

July 01, 2024 by Anuraj

AspNetCore DotNet MongoDB EFCore

In this blog post, we’ll learn how we can use Mongo DB EF Core provider in .NET Aspire. Long back I wrote a blog post on how to use Mongo database in .NET Aspire project and how to use Mongo DB EF Core provider. By default in .NET Aspire the IMongoClient interface will be injected in ASP.NET Core which we can be used in controllers and service to interact with Mongo Database.

ASP.NET Core Web API documentation with Redoc

June 26, 2024 by Anuraj

AspNetCore DotNet WebApi Documentation

In this blog post, we’ll learn how we can use Redoc for UI for Open API documentation. By default ASP.NET Core Web API Open API documentation will be displayed in Swagger UI. In this blog I will explain how we can change it to ReDoc and how we can enhance API documentation in ReDoc with code examples.

Implementing API Key Authentication in ASP.NET Core

June 23, 2024 by Anuraj

AspNetCore DotNet

In this blog post, we’ll learn how to implement API Key Authentication in ASP.NET Core. When exposing API endpoints to other developers or consumers it is a best practice to implement authentication system. Api Key authentication is very easy to implement and configure. In this approach, developers need to provide the API Key along with the request details.

How to use API versioning in ASP.NET Core

June 20, 2024 by Anuraj

AspNetCore DotNet

In this blog post, we’ll learn how to implement API versioning with ASP.NET Core 8.0 Web API. I wrote a blog post long back on how to implement versioning in ASP.NET Core Minimal APIs. In this blog post we will learn how we can implement versioning in ASP.NET Core Web API with Controllers.

Building .NET Aspire applications with Visual Studio 2022

May 30, 2024 by Anuraj

AspNetCore dotnet Aspire

In this blog post, we’ll learn how to create a .NET Aspire applications with Visual Studio 2022. Microsoft announced general availability of .NET Aspire in Microsoft Build 2024.

Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub