Blog
Blog posts on .NET, Azure, and more.
Mocking HttpClient in unit tests
November 27, 2024 by Anuraj
dotnet unittest
In this blog post, we’ll learn mock HttpClient in unit tests. Recently I started working on a C# wrapper on BlueSky API. To write the unit tests for the library, I had to mock HttpClient.
How to profile ASP.NET Core Minimal APIs using MiniProfiler
November 10, 2024 by Anuraj
dotnet AspNetCore MiniProfiler
In this blog post, we’ll learn how to profile ASP.NET Core Minimal APIs and Entity Framework using MiniProfiler. MiniProfiler is a library and UI for profiling your application from StackExchange team. By letting you see where your time is spent, which queries are run, and any other custom timings you want to add, MiniProfiler helps you debug issues and optimize performance.
How to setup OpenTelemetry instrumentation in ASP.NET core
October 14, 2024 by Anuraj
dotnet AspNetCore OpenTelemetry
In this blog post, we’ll learn how to setup OpenTelemetry instrumentation in ASP.NET core. OpenTelemetry is an open-source observability framework that provides a set of tools, APIs, and SDKs for generating, collecting, and exporting telemetry data such as traces, metrics, and logs. It is designed to be vendor-agnostic, allowing developers to instrument their applications and systems without being tied to a specific backend. This helps in understanding the performance and health of cloud-native applications and distributed systems by standardizing the way telemetry data is collected and transmitted.
Working with GitHub models in .NET 8 and Semantic Kernel
September 30, 2024 by Anuraj
AI dotnet AspNetCore
In this blog post, we’ll learn build generative AI apps using GitHub models with .NET 8 and Semantic Kernel. First we need to get access to GitHub Models. We can get it from https://github.com/marketplace and while GitHub Models is in private beta today, you can join the waitlist.
Building Generative AI apps with .NET 8 and Semantic Kernel
August 30, 2024 by Anuraj
AI dotnet AspNetCore
In this blog post, we’ll learn build generative AI apps with .NET 8 and Semantic Kernel. This is an introduction post - we will learn how to get started with Semantic Kernel in ASP.NET Core. Most of the Semantic Kernel tutorials, we will see only with Console applications. Here we are integrating Semantic Kernel to an ASP.NET Core Web API application which will act as backend to a Review API - where we will analyzing the sentiment of the review and return it.
Copyright © 2025 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