Problem solved: Localization and Validation Attributes

I was tasked at work with making my client’s Blazor Web Server app internationalized. It was quite an easy task; that is, until I had to localize the error messages from validation attributes (which are used a LOT throughout the app). I looked for an answer for ages, because I just couldn’t accept what was …
Continue reading Problem solved: Localization and Validation Attributes

Seeing through the microservices hype

Imagine two people in a room (2 things in the same process space) P1 can talk to P2 directly, it is very fast. Converting that to a microservice changes that so that when P1 and P2 wish to negotiate, they have to do this And then the recipient has to reply. We are converting nanosecond …
Continue reading Seeing through the microservices hype

Be warned: Apps that use BlazorBootstrap may stop working soon!

Hi all Please share this important message on your social media accounts to raise awareness. TL;DR: BE WARNED!!! BlazorBootStrap is an illegal copy of Blazorise. Legal steps are being taken to have BlazorBootstrap removed from both NuGet and Github – so any apps you have that are written with it are likely to stop building. …
Continue reading Be warned: Apps that use BlazorBootstrap may stop working soon!

You are probably doing dependency injection registration wrong!

What’s wrong? A mistake I’ve seen a few times is when apps that consume injectable dependencies take on the responsibility of registering those dependencies. I consider this a mistake because at the point you need a new project (such as an Azure Functions App) you then need to register all the same dependencies – meaning …
Continue reading You are probably doing dependency injection registration wrong!

Including source code in your application build

An application that demonstrates a component suite often serves as both a showcase and a learning tool. It provides an interactive way to explore the functionality, design, and capabilities of a set of UI components or features. What makes it particularly valuable is its ability to display its own source code alongside the demo, offering …
Continue reading Including source code in your application build

Preventing Dialog boxes obscuring Blazor-Server connection status

When a Blazor-Server application loses connectivity from the browser with the server, it displays a semi-transparent obscuring layer and a message informing the user it is trying to reconnect. My most recent release of Morris.Blazor.Web.Modal uses the HTML <dialog> element to ensure users cannot tab to controls beneath the currently focused Modal window. The problem …
Continue reading Preventing Dialog boxes obscuring Blazor-Server connection status

Avoid returning index.html for API calls

While writing an asp.net hosted Blazor WASM app, I’ve noticed that when I call an API on my server I receive the contents of index.html when I am expecting a 404 error. TL;DR Explanation When you first request a URL from the host and nothing is found at that address, the server will serve the …
Continue reading Avoid returning index.html for API calls