Blog posts on .NET, Azure, and more.

How to setup nginx reverse proxy for aspnet core apps with Docker compose

April 24, 2021 by Anuraj

AspNetCore Docker

This article will discuss about configuring nginx reverse proxy for aspnet core apps with Docker compose. Today I took as session on Introduction to Docker Containers one of the question I received was how to run multiple instances of a container and load balance them. So in this blog post I am creating multiple instances of a ASP.NET Core Web API and load balance them with the help of nginx. Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.

ASP.NET Core 5.0 Authentication with Azure Active Directory

April 14, 2021 by Anuraj

AspNetCore Authentication Azure

This article will discuss about implementing Azure Active Directory authentication in ASP.NET Core 5.0. Few weeks back I wrote a blog post on implementing Azure AD authentication for ASP.NET Core Web API project. In this article we will discuss about implementing authentication to an ASP.NET Core MVC project. Unlike earlier versions of ASP.NET Core Project templates, ASP.NET Core 5.0 new project UI doesn’t offer much configuration options. From the Authentication Type you need to choose Microsoft Identity Platform.

Active Class Tag Helper in ASP.NET Core

April 12, 2021 by Anuraj


This article will discuss about implementing a tag helper in ASP.NET Core MVC which helps you apply class to your bootstrap menu based on route. By default core mvc comes with Bootstrap 4 as the UI framework. In Bootstrap, the active menu can be high lighted using active class. This core tag helper will help you to apply the active class based on the route. Here is the implementation.

Stored Procedure in Entity Framework Core Migrations

April 08, 2021 by Anuraj

EFCore Azure DevOps

SQL Server stored procedure is a set of SQL statements grouped as a logical unit and stored in the database. The stored procedure can accepts input parameters and executes the T-SQL statements in the procedure, can return the result. If you’re using Entity Framework Code first approach there is no direct way to create stored procedure in C# code. You can execute a stored procedure in Entity Framework with the help of FromSqlInterpolated method. Here is an example.

Building a Social Media monitoring tool with NodeJs, Azure Cosmos DB and Azure Cognitive services

April 05, 2021 by Anuraj

NodeJs Azure CosmosDb cognitive Services Text Analytics

This article will discuss about implementing Social Media monitoring tool with NodeJs, Azure Cosmos DB and Azure cognitive services.

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