Publishing Blazor WebAssembly App to IIS
In this article, we will learn how to publish a Blazor WebAssembly application on IIS. Let's dive in. Setting up the App Blazor has three hosting...
Code Maze Weekly #196
Issue #196 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Redacting sensitive data in logs with Microsoft.Extensions.Compliance.Redaction [andrewlock.net] An important article about the...
How to Get an Access Token from HttpContext in ASP.NET Core
In this article, we will learn different ways to get an Access Token from HttpContext. Let's start. Understanding the HttpContext In...
Select a Dropdown Option Using Selenium WebDriver in C#
In this article, we will look at different ways to select a dropdown option using Selenium WebDriver in C#. We will use ASP.NET Core application and xUnit tests to showcase different approaches to our goal.
Blazor WebAssembly Ahead of Time Compilation
In this article, we will explore the concept of ahead-of-time (AOT) compilation in Blazor WebAssembly projects. We'll explain how to enable AOT compilation, how it operates, and when it proves effective. Additionally, we'll look at how it optimizes applications with...
Hexagonal Architectural Pattern in C#
In this article, we are going to describe the hexagonal architectural pattern. We will explain its structure, where it came from, and its advantages and disadvantages. Furthermore, we will demonstrate its implementation in C#. If you want to create a zip file in the cloud on the fly instead of...
How To Read the Request Body in ASP.NET Core Web API
ASP.NET Core offers a versatile request-response pipeline, allowing seamless customization and intervention. Managing incoming requests to read the request body in an ASP.NET Core Web API application is a common and crucial task. There are multiple methods and...
How to Determine the Operating System in .NET Core
In this article, we are going to find out how to determine the operating system of a computer on which our .NET Core application is running. [sc name="github" url="https://github.com/CodeMazeBlog/CodeMazeGuides/tree/main/dotnet-base-libraries/DetermineOperatingSystem"...
How to Use Request Timeouts Middleware in ASP.NET Core
In this article, we'll explore what the request timeouts middleware in ASP.NET Core does, how we can use it, as well as some advanced features we can leverage. [sc name="github"...
How to Use the Automated Machine Learning API With ML.NET
Continuing our ML.NET series, we will take a closer look at the Machine Learning API With ML.NET. Let's dive in and learn how to use...
How to Check if a File Is in Use With C#
File manipulation is a common and broad thing in the .NET world and in some cases can lead to certain exceptions. In this article, we will focus on files already in use, and see how we can avoid it. [sc name="github"...