Latest Posts On Code Maze

ASP.NET Core Configuration – Options Validation

ASP.NET Core Configuration – Options Validation

In this article, we're going to learn the importance of options validation and a few ways to implement it in our ASP.NET Core applications. With advanced mechanisms like configuration reloading, we need to think about options validation carefully as we don't want to...

Code Maze Weekly #41

Code Maze Weekly #41

Blazor still seems to be a hot topic among the .NET developers. In other news, Microsoft has announced a few awesome features like performance improvements and app trimming. In fact, everything seems to get faster and more optimized with every update. That's why we...

ASP.NET Core Configuration – Options Pattern

ASP.NET Core Configuration – Options Pattern

In this article, we're going to cover another way of reading configuration data in .NET Core - the options pattern. The options pattern helps us group related configuration settings, and it provides strongly typed access to them. We are going to learn how the options...

ASP.NET Core Configuration – Basic Concepts

ASP.NET Core Configuration – Basic Concepts

In this introductory article, we are going to learn how ASP.NET Core configuration works, the basic configuration concepts, and a few different ways we can use to configure our application. Even by default, the configuration mechanism in .NET is pretty powerful, but...

Dependency Injection in ASP.NET Core

Dependency Injection in ASP.NET Core

In this article, we're going to talk about dependency injection, one of the most frequently used design patterns out there. There are many tutorials about dependency injection, but in this one, we're going to focus on understanding why the dependency injection is used...

Code Maze Weekly #40

Code Maze Weekly #40

This week has been we've seen some significant increase in the number of quality articles overall. .NET 5 Preview 8 has come out, and it's the important (last?) preview before .NET 5 comes out. So let's get comfy and parse through some of these beauties: .NET and C#...

Introduction to Cloud Computing and Azure

Introduction to Cloud Computing and Azure

In this article, we are going to discuss the fundamentals of Cloud Computing and Microsoft Azure. To read more about Azure, you can visit our Azure with ASP.NET Core page, where you can find all the articles from the series. What is Cloud Computing? Cloud Computing is...

Deep Dive Into Different Validators with FluentValidation

Deep Dive Into Different Validators with FluentValidation

In the previous article, we had a brief look at how to use FluentValidation in an ASP.NET Core application, as an alternative to using Data Annotations. We've created a simple API and demonstrated the basic concepts of FluentValidation. So, in this article, we are...

FluentValidation in ASP.NET Core

FluentValidation in ASP.NET Core

In this article, we're going to discuss the use of FluentValidation in ASP.NET Core. Traditionally, most validation in .NET is done using Data Annotations: public class SampleClass { [Required] public int Id { get; set; }     [MaxLength(100)] public string Name { get;...

Code Maze Weekly #39

Code Maze Weekly #39

We're back on track with a fresh batch of extremely useful articles for this late August summer week. Pick the topic you're interested in, get that cold brew you've been saving in the fridge and start reading: .NET and C# Symmetric and Asymmetric Encryption in .NET...

Introduction to gRPC in ASP.NET Core With MongoDB

Introduction to gRPC in ASP.NET Core With MongoDB

In this article, we’re going to cover how to set up an ASP.NET Core gRPC service with MongoDB as our database. MongoDB is an increasingly popular database and is often integrated with a gRPC service. Integration with MongoDB has been covered in a previous article so...

How to Implement SignalR Automatic Reconnect with Angular

How to Implement SignalR Automatic Reconnect with Angular

In this article, we are going to learn how to implement Automatic Reconnect in SignalR. We have already discussed how to implement a real-time chart using ASP.NET Core SignalR on the server-side and Angular on the client-side in our .NET Core with SignalR and Angular...

Code Maze Weekly #38

Code Maze Weekly #38

The midsummer slowdown is certainly noticeable, but we've still seen many interesting articles this week. Take a little break, find a good place in the shade, and start reading some of your favorite topics: .NET and C# Understanding .NET Generic Host Model...

How to Send Client-Specific Messages Using SignalR

How to Send Client-Specific Messages Using SignalR

In our .NET Core with SignalR and Angular – Real-Time charts article, we learned how to implement a real-time chart using ASP.NET Core SignalR on the server-side and Angular on the client side. As part of that article, we implemented a SignalR hub that pushes messages...

Role-Based Authorization with Blazor WebAssembly

Role-Based Authorization with Blazor WebAssembly

Up until now, we have learned how to use AuthenticationStateProvider in Blazor WebAssembly. Additionally, we have learned how to create registration functionality as well as Login and Logout functionalities in our application. But what about the roles? Well, in this...

Code Maze Weekly #37

Code Maze Weekly #37

Razor Pages, Blazor, C# 9, APIs, Kafka, IIS, security, skill improvement, burnout, we've seen all kinds of articles this week. There is an article for anyone, so find a comfy spot and choose the one you like: .NET and C# Improved Target Typing In C# 9...

AuthenticationStateProvider in Blazor WebAssembly

AuthenticationStateProvider in Blazor WebAssembly

Now that we know the basics of Blazor WebAssembly, we can move on to learning about authentication and authorization. In this article, we are going to explore how to accomplish these actions by inspecting the AuthenticationStateProvider. We are going to create a test...

Code Maze Weekly #36

Code Maze Weekly #36

This week we've seen articles on all kinds of different topics. From .NET to frontend to AI and some interesting real-world stuff that we can all relate to. Check out this week's selection, pick your favorite place to read and enjoy: .NET and C# Detecting duplicate...