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 Wasm - Get Access Token for User

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

    In this article I show, using ASP.NET Core Blazor Wasm, a quick snippet to get the AccessToken for a logged in User. Not much to it just using the IAccessTokenProvider, and if the user is signed in and they have are using an authentication type that provides an access token, like OpenID.

  2. Blazor - Client/Server Dynamic Scripting

    • Blazor
    • ASP.NET Core
    • .NET
    • C#
    • Scripting

    For my new Blazor Game Client I wanted a way to create scripts that could be written by the user of the platform, and automatically load them from Client, without having to pull down a new client or having to reload the client. This article will go over the project I created to show how this might be done.

  3. DotNet Core - Create a Script DLL

    • .NET Core
    • .NET
    • C#
    • Scripting

    In this article we will go over creating a DLL for scripts, this will allow for a single file artifact that can be loaded up in just about any .NET Core application.

  4. 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();.

  5. 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.