Async Operations using RabbitMQ and .NET Core

Introduction RabbitMQ is an open-source message broker software that facilitates communication between different parts of a distributed system by enabling asynchronous messaging. It acts as an intermediary, receiving and routing messages between various components, which can be running on different machines or processes. RabbitMQ is commonly used to implement messaging …

Using The New IAsyncEnumerable Interface In .NET Core 3

Introduction The IAsyncEnumerable<T> interface in .NET Core (and later versions, including .NET 5 and beyond) is designed to represent a sequence of asynchronous values. It is similar to the traditional IEnumerable<T> interface, but it allows you to work with asynchronous data streams in a more efficient and convenient way. This …

Access SQL Server Database In .NET Core Console Application

Introduction To access a SQL Server database in a .NET Core console application, you’ll need to follow these general steps: Install NuGet Packages:Open your console application project in Visual Studio or a text editor, and add the necessary NuGet packages to enable SQL Server database connectivity: These packages provide Entity …

Authorization Using Windows Active Directory Groups In .NET Core 2 Razor Pages

Introduction In a .NET Core 2 Razor Pages application, we can implement authorization using Windows Active Directory groups by leveraging Windows Authentication and configuring our application to validate users and groups against the Active Directory. Here’s a general outline of the steps we would follow: 1. Configure Windows Authentication: In …

Why We Should And Should Not Use .NET Core

Using .NET Core (now known as .NET) depends on various factors, including your project’s requirements, goals, and existing technology stack. Here are some reasons for and against using .NET Core: Reasons to Use .NET Core: Cross-Platform Development: .NET Core is designed to be cross-platform, meaning you can develop applications that …

Integrate Microsoft Graph With .NET CORE Web APIs

Introduction Integrating Microsoft Graph with a .NET Core Web API allows you to leverage Microsoft Graph’s powerful capabilities to access and manipulate data from various Microsoft services, such as Azure Active Directory, Microsoft 365, and more. Here’s a step-by-step guide to integrating Microsoft Graph with a .NET Core Web API: …

HTTP Requests Using IHttpClientFactory

IHttpClientFactory is a feature introduced in .NET Core to manage and create HttpClient instances efficiently. It helps to avoid issues like socket exhaustion and allows for better management of HTTP connections. Here’s how you can use IHttpClientFactory it with an example in a .NET Core application: Add HttpClient Configuration in …

Securing The URL Parameter/Sensitive Data Using .Net Core DataProtectorTokenProvider

Introduction In .NET Core, the DataProtectorTokenProvider can be used to secure URL parameters or sensitive data by encrypting and protecting tokens and payloads. This provider is often used in scenarios such as password reset links, email confirmation tokens, and other cases where you want to ensure the integrity and confidentiality …

CI/CD Pipeline Using Jenkins And GitHub For .NET Core Web Application

Introduction Continuous Integration (CI) and Continuous Deployment (CD) pipelines are essential for automating the build, testing, and deployment processes of your .NET Core web application. Jenkins is a popular open-source automation server that can be used to create and manage CI/CD pipelines. In this guide, we’ll provide an introduction to …

Create Windows Service In .NET Core

Introduction Creating a Windows Service in .NET Core involves several steps. Here’s a step-by-step guide to help you create a Windows Service using .NET Core: Step 1: Create a .NET Core Console Application Open a terminal or command prompt. Navigate to the directory where you want to create your project. …