Using Fluxor for State Management in Blazor
In this article, we will review the Flux pattern with its benefits, and drawbacks in general. Then we will take a look into how Fluxor implements this pattern. Finally, we will learn how to use the library using an example Blazor application. Since the .NET Core term is fading away slowly, let's remember how it...
How to Get the Number of Files in a Folder With C#
In this article, we are going to see how to get the number of files in a folder. C# provides several methods to determine file counts within a folder, each tailored for specific use cases. A simple middleware that logs your request headers can go a long...
Different Ways to Get the First Record in Each Group With LINQ
In this article, we will explore different methods to get the first record in each group with LINQ. Grouping, searching, sorting, filtering,...
Different Ways to Run Background Tasks in ASP.NET Core
In this article, we'll explore different ways of running background tasks in ASP.NET Core applications without depending on external providers. [sc name="github" url="https://github.com/CodeMazeBlog/CodeMazeGuides/tree/main/aspnetcore-features/RunningBackgroundTasks"...
How To Use ArraySegment in C#
In this article, we will show how to use the ArraySegment<T> in C#. Arrays are one of the most fundamental collection...