SOLID Principles explained with code example [#15]

If you search for SOLID design principles on the internet, you will find tones of results that provide the definition and/or basic object-oriented code examples. Have you wondered how should code that follows these principles look like in an real application? In this article, I will explain the SOLID Design Principles with a small application that should feel closer to what you see in a real application.

Error handling in ASP NET Core Web API [#13]

Error handling is an essential feature of every software product. In this post I will show you how to handle errors in ASP NET Core Web APIs using custom exceptions and a ASP.NET Core middleware component.

Add Logging to a Net Core Console App [#9]

Logging is an essential feature of every application; it allows us to find and fix errors, handle warnings, and record information while debugging. In this article, we will check what does .NET Core gives us out of the box and how we can add more logging capabilities using third-party packages.

Building a Worker Service [#8]

Console Applications have been used for a long time to build long running applications that do not require user interaction. Since .Net Core 3 the SDK provides a template that allow us creating a Console Application with some feature such as logging, lifetime management and external configuration out of the box. This template is called Worker Service.

.NET CLI Cheat sheet [#7]

The .NET CLI (command-line interface) is a cross-platform tool to build, run, and publish .NET applications. This article provides a list of common CLI commands that can be very handy in your day to day.