Articles

Checkout out these articles! I mainly focus on Tech related topics with a heavy focus on .NET and anything relating to Game Development. But you will find some hidden gems about infrastructure like Kibana to Kubernetes!


  1. Blazor - Enable API Endpoints

    • Blazor
    • .NET Core
    • .NET
    • C#

    Just a quick post showing how to enable API controllers in a Blazor server application. I noticed, for performance, the default templates I used does not automatically wire up API controllers that are in your application. To enable API controllers you just need to add to the endpoints mapping, endpoints.MapControllers();.

  2. C# Merge Dictionaries

    • .NET Core
    • .NET
    • C#

    While working on my Game client conversion, which is why I have not posted many articles for a while, I found a need to merge two dictionaries into a single dictionary. Its not a real complicated process, but I all the examples I found would alway use the item from the first dictionary or would throw exceptions on a duplicate. To get around these two scenarios I created the MergeLayoutControlOptions method below, it takes in a list of Dictionary typed objects and merges them with the last grouped value taking priority in the new Dictionary.

  3. Project - EventHorizon Blazor Interop

    • Blazor
    • ASP.NET Core
    • WebAssembly
    • Wasm
    • .NET Core

    I have been working on a project that will generate a C# Blazor WASM abstraction from a TypeScript definition file, as part of that project I needed a way to run the equivalent functionality in JavaScript. This article will go over that WASM Interop project I created, I also package it up in an easy to use NuGet package if you want to use it as well.

  4. Project - EventHorizon Blazor TypeScript Interop Generator

    • Blazor
    • ASP.NET Core
    • .NET Core
    • Blazor
    • .NET
    • WebAssembly
    • Wasm

    This project's name is a mouthful, but based on the name you should be able to get the gist of what the project does. The project generates a C# Blazor Interop abstraction from the Abstract Syntax Tree from a TypeScript definition file, giving the user a generated project that can make interfacing with JavaScript libraries easier from C#.