Using HttpContext.Items in ASP.NET Core

In ASP.NET Core, HttpContext.Items is a useful feature for storing data during the processing of an HTTP request. This collection allows you to share information between middleware, controllers, and other components without relying on session state or global variables. Key Features: Here is an example authorization handler that adds a value in the Items dictionary. and in … Read more

Deploy Angular Application for Different Environments in Azure DevOps Pipelines

If you are developing an Angular application, you might have different environments for development, testing, and production, as well as your local machine. You might also have different configuration settings for each environment, such as API endpoints, feature flags, or authentication keys. How can you manage these settings and deploy your application to different environments … Read more

How to use Parallel.ForEachAsync to read JSON files

In this article, I will show you how to use the new Parallel.ForEachAsync method in C# to read multiple JSON files asynchronously and deserialize them into a list of objects. This method is available in .NET 6 and later versions What is Parallel.ForEachAsync? Parallel.ForEachAsync is a method that executes a for-each operation on an enumerable … Read more

Understanding ngTemplateOutlet and ngTemplateOutletContext in Angular

Angular provides a powerful mechanism called ngTemplateOutlet, allowing developers to dynamically render content within a template. This feature is handy when reusing components or templates with varying data. In this blog post, we’ll explore the basics of ngTemplateOutlet and dive into the usage of [ngTemplateOutletContext]. What is ngTemplateOutlet? ngTemplateOutlet is an Angular directive that enables … Read more

C# Record Types

Hi there, welcome to my blog! Today I’m going to talk about a new feature in C# 10 that makes working with data easier and more concise: record types. Record types are a special kind of class or struct that provide built-in functionality for encapsulating data. They are ideal for scenarios where you need to … Read more