Code Maze Author

Muhammed Saleem

Muhammed Saleem has 16 years of proven track record in architecting, designing & developing high-quality software solutions. He's a problem solver at heart and passionate about building great software. He's a curious, self-driven learner and self-starter with a strong base of computer science fundamentals. He has experience in implementing best practices for managing software development, ensuring code quality, Application Lifecycle Management, DevOps, etc.
Also find me here:

MY ARTICLES:

Exceptionless for Real-Time Error Reporting in ASP.NET Core

Exceptionless is an open-source service that collects the errors, log messages and feature usage events our applications send to it. In ASP.NET Core, one NuGet package and a few lines in Program.cs are enough to report every unhandled exception to its dashboard. [sc...

Clean Architecture in C# and .NET: A Step-by-Step Guide

Clean Architecture is a way to structure a C# application so the business rules sit at the center and depend on nothing. The database, the web framework and every other detail depend on them, never the other way around. In .NET, that usually means four projects:...

FluentEmail in C#: Sending Emails in .NET

FluentEmail is a .NET library that builds and sends an email in one chain of method calls: To(), Subject(), Body(), SendAsync(). The delivery (SMTP, SendGrid, Mailgun, MailKit) and the template engine (Razor or Liquid) plug in when we register it. In this article, we...

Log4net Appenders Introduction With C# Examples

Log4net appenders are the components that determine where we need to keep the logs. Using appenders, we can send log4net logs to different destinations such as the console, files, databases, etc. In this article, we are going to discuss a few of the most common and...

Structured Logging in ASP.NET Core With log4net

Log4net is a very popular open-source logging library for .NET applications. This library is part of the Apache Logging Services project at the Apache Software Foundation. Log4net provides a flexible way of writing logs to different output targets like files,...

C# yield break: How It Differs From break and return

The yield break statement ends an iterator method on the spot. The sequence stops, and nothing after it in the method runs except a finally block. Think of it as the iterator's version of a plain return;, which the compiler doesn't allow inside an iterator. In the...

How to Mock EF Core DbContext

While unit-testing EF Core applications, sometimes, we may want to mock EF Core DbContext. In this article, we'll talk about a few ways of doing that. ...

Web API Analyzers in ASP.NET Core

In this article, we are going to discuss the Web API Analyzers in ASP.NET Core. Let's get going. What are Web API Analyzers? ASP.NET Core Web API...

IComparable vs IComparer vs Comparison Delegate in C#

IComparable<T> gives a type its one default sort order, IComparer<T> puts a sort order in a separate class, and the Comparison<T> delegate is a sort order written as a method or a lambda. All three answer the same question about two objects: which...

What is .NET – Why Should We Use It, and What Can We Do With It

In this article, we are going to learn about .NET and its capabilities. We'll see what .NET is, what different application models .NET supports, why should we use it, and some limitations. So let's get going. What is .NET? .NET is a free, cross-platform, open source...

IActionResult and Web API Return Types in ASP.NET Core

An ASP.NET Core Web API controller action can return four things: a specific type such as Employee, an IActionResult, an ActionResult<T>, or one of the HttpResults types through TypedResults. [sc name="patreon-source-code"...