Code Maze https://code-maze.com/ Learn. Code. Succeed. Thu, 26 Jun 2025 08:37:28 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.5 https://code-maze.com/wp-content/uploads/2020/01/Code-Maze-Favicon.png Code Maze https://code-maze.com/ 32 32 Measure Application Performance in .NET Using IMeterFactory https://code-maze.com/dotnet-imeterfactory-application-performance/ https://code-maze.com/dotnet-imeterfactory-application-performance/#respond Wed, 26 Feb 2025 08:47:52 +0000 https://drafts.code-maze.com/?p=122235 Performance monitoring is essential for ensuring that our applications run efficiently and reliably. .NET offers a set of tools to help with this, accessible via IMeterFactory. In this article, we’ll learn how to use these tools to check the health of our applications, measure performance, and collect data for optimization. So let’s get going. What […]

The post Measure Application Performance in .NET Using IMeterFactory appeared first on Code Maze.

]]>
https://code-maze.com/dotnet-imeterfactory-application-performance/feed/ 0
Implement Roles With Keycloak, Web API and Blazor WebAssembly (RBA) https://code-maze.com/keycloak-roles-blazor-webassembly-web-api/ https://code-maze.com/keycloak-roles-blazor-webassembly-web-api/#comments Fri, 21 Feb 2025 07:20:52 +0000 https://code-maze.com/?p=123818 In this article, we will take a step further from the previous one by implementing role-based authorization with Keycloak, Blazor WebAssembly, and Web API. If you haven’t read the previous one, I strongly recommend doing that to gain a full picture of the authentication implementation. By assigning roles to users in Keycloak, we can control […]

The post Implement Roles With Keycloak, Web API and Blazor WebAssembly (RBA) appeared first on Code Maze.

]]>
https://code-maze.com/keycloak-roles-blazor-webassembly-web-api/feed/ 2
Keycloak Authentication With ASP.NET Core Web API and Blazor WebAssembly https://code-maze.com/keycloak-authentication-with-asp-net-core-web-api-and-blazor-webassembly/ https://code-maze.com/keycloak-authentication-with-asp-net-core-web-api-and-blazor-webassembly/#comments Mon, 17 Feb 2025 07:59:06 +0000 https://code-maze.com/?p=123813 In this article, we are going to learn about integrating Keycloak authentication in a Blazor WebAssembly (WASM) frontend and a .NET Web API backend. With this setup, we will enable secure user authentication across both applications. Keycloak is an open-source identity and access management solution that provides authentication, authorization, and user management out of the […]

The post Keycloak Authentication With ASP.NET Core Web API and Blazor WebAssembly appeared first on Code Maze.

]]>
https://code-maze.com/keycloak-authentication-with-asp-net-core-web-api-and-blazor-webassembly/feed/ 2
Hybrid Caching in ASP.NET Core https://code-maze.com/dotnet-hybrid-caching/ https://code-maze.com/dotnet-hybrid-caching/#respond Mon, 10 Feb 2025 07:02:05 +0000 https://code-maze.com/?p=123806 In this article, we’ll introduce hybrid caching in .NET, a new cache type that bridges the existing cache mechanisms in .NET: distributed cache and memory cache. We’ll start by briefly explaining a cache and how existing caches in .NET work. After that, we’ll explore hybrid caching and show how it can be used and configured […]

The post Hybrid Caching in ASP.NET Core appeared first on Code Maze.

]]>
https://code-maze.com/dotnet-hybrid-caching/feed/ 0
Testing Database Connectivity with EF Core https://code-maze.com/efcore-testing-database-connectivity/ https://code-maze.com/efcore-testing-database-connectivity/#comments Thu, 23 Jan 2025 11:08:23 +0000 https://code-maze.com/?p=123759 Whether during application startup, multi-step workflows, or monitoring an application’s overall health, verifying database connectivity is essential for smooth operation and graceful handling of potential failures. It improves reliability and the overall user experience. In modern containerized environments, often managed by orchestrators like Kubernetes (K8S), it’s equally important for services to report their health status. […]

The post Testing Database Connectivity with EF Core appeared first on Code Maze.

]]>
https://code-maze.com/efcore-testing-database-connectivity/feed/ 2
How to Perform Snapshot Testing With Verify in C# https://code-maze.com/csharp-snapshot-testing-with-verify/ https://code-maze.com/csharp-snapshot-testing-with-verify/#respond Mon, 13 Jan 2025 07:47:49 +0000 https://code-maze.com/?p=123741 In this article, we are going to discuss how to perform snapshot testing on objects using the Verify library. Testing is an important part of our software development pipeline. As developers, we often rely on familiar testing approaches like unit testing, where we assert the behavior of individual components of an application, and integration testing, […]

The post How to Perform Snapshot Testing With Verify in C# appeared first on Code Maze.

]]>
https://code-maze.com/csharp-snapshot-testing-with-verify/feed/ 0
Persist Values With AsyncLocal in C# Async Flow https://code-maze.com/csharp-persist-values-with-asynclocal-in-async-flow/ https://code-maze.com/csharp-persist-values-with-asynclocal-in-async-flow/#respond Mon, 06 Jan 2025 05:55:32 +0000 https://code-maze.com/?p=123739 In this article, we’ll explain the AsyncLocal class and how to persist values across an async flow with the AsyncLocal class in C#. We’ll start by describing the challenge that AsyncLocal solves and continue with examples of how it does that. We’ll scratch the surface of the AsyncLocal inner workings and finish with the cases […]

The post Persist Values With AsyncLocal in C# Async Flow appeared first on Code Maze.

]]>
https://code-maze.com/csharp-persist-values-with-asynclocal-in-async-flow/feed/ 0
Global Query Filters in Entity Framework Core https://code-maze.com/efcore-global-query-filters/ https://code-maze.com/efcore-global-query-filters/#comments Mon, 23 Dec 2024 04:47:32 +0000 https://code-maze.com/?p=123732 In this article, we will discuss Entity Framework Core’s global query filters and how to use them. We will also consider other scenarios related to using query filters that we need to be aware of. Let’s dive in. What Is a Global Query Filter? Global query filters are a handy feature of Entity Framework (EF) […]

The post Global Query Filters in Entity Framework Core appeared first on Code Maze.

]]>
https://code-maze.com/efcore-global-query-filters/feed/ 3
Comparison of Rebus, NServiceBus, and MassTransit in .NET https://code-maze.com/aspnetcore-comparison-of-rebus-nservicebus-and-masstransit/ https://code-maze.com/aspnetcore-comparison-of-rebus-nservicebus-and-masstransit/#respond Mon, 16 Dec 2024 04:28:02 +0000 https://code-maze.com/?p=123717 Messaging systems are the backbone of scalable and distributed applications in .NET. They allow different parts of an application, or even separate applications, to communicate efficiently and reliably. Choosing the right messaging library, Rebus, NServiceBus, or MassTransit, is essential to ensure our system’s performance and long-term maintainability. In this article, we will compare Rebus, NServiceBus, […]

The post Comparison of Rebus, NServiceBus, and MassTransit in .NET appeared first on Code Maze.

]]>
https://code-maze.com/aspnetcore-comparison-of-rebus-nservicebus-and-masstransit/feed/ 0
Chain of Responsibility Design Pattern in C# https://code-maze.com/csharp-chain-of-responsibility-design-pattern/ https://code-maze.com/csharp-chain-of-responsibility-design-pattern/#respond Mon, 09 Dec 2024 06:56:56 +0000 https://drafts.code-maze.com/?p=121693 In this article, we will talk about the Chain of Responsibility Design Pattern. We are going to see how to implement this pattern in C# and how it can solve certain design problems. Let’s start. What is The Chain of Responsibility Design Pattern? Chain of Responsibility is a behavioral pattern that helps us design a […]

The post Chain of Responsibility Design Pattern in C# appeared first on Code Maze.

]]>
https://code-maze.com/csharp-chain-of-responsibility-design-pattern/feed/ 0