Latest Posts
-
Blazor - Cascading Component Attributes
05 Sep 2020 - Cody Merritt Anhorn
When using Blazor you will sometimes need to give a Button some of your own flare, with that comes the problem of mapping all the attributes to another tag from your component. Below I show an out of the box way to cascade the attributes from your wrapper component to a tag, in this case a button.
-
Blazor - Client/Server Dynamic Scripting
25 Aug 2020 - Cody Merritt Anhorn
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.
-
DotNet Core - Create a Script DLL
21 Aug 2020 - Cody Merritt Anhorn
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.
-
Blazor - Enable API Endpoints
21 Aug 2020 - Cody Merritt Anhorn
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();
. -
C# Merge Dictionaries
15 Aug 2020 - Cody Merritt Anhorn
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.