Unintended Side Effects with .NET Core Service Lifetimes and Dependency Injection (DI)

Esau Silva Social Media Card

We have an API that handles ~45k monthly requests that was, at times, responding strangely. I suspected it was related to the .NET Core service lifetimes. The symptoms in question were that out of the blue, the API response body had a status code of 409 with a message of invalid user-provided values, however, the […]

.NET Global Exception Handler to Return Problem Details For Your APIs

Esau Silva Social Media Card

This article will focus on handling custom exceptions for flow control on .NET with a global exception handler and return a problem details object. Having said that. There are, for the most part, two schools of thought. One where it is OK to throw a (custom) exception to control flow. i.e. Throw a UserNotFoundException when […]

Solved: GraphQL and Hot Chocolate Workshop issues with the latest versions of Hot Chocolate and .NET Top-Level Statements

Esau Silva - Fullstack Software Engineer

I started working on the official “Getting started with GraphQL on ASP.NET Core and Hot Chocolate – Workshop” tutorial, but since the workshop is a bit outdated, it targets .NET 5 and an older version of Hot Chocolate. I am using the latest .NET 7 (at the time of this writing) and top-level statements. In […]

Compile Sass Files in Visual Studio and Webpack

Sass is a very popular CSS pre-processors and the intent of the tutorial is to show you how to compile Sass files within Visual Studio using Webpack, this will include minification and autoprefixing for production. Sure, there are some plug-ins on the Visual Studio Marketplace, and is nice to just install a plug-in and forget […]