Blog

Technical Articles

This section contains site articles covering .NET, desktop development, engineering practice, and general development topics.

First Visit

New User Starting Route

Random Exploration

Random Discovery

Random Discovery

Dotnet9 Website Returns to Blazor Refactoring, Access Speed Soars, and Interaction is More Convenient!

Originally, the site owner aimed to experience .NET 8 Blazor Web App by adding Razor components to Razor Pages. However, the hybrid mode Razor components currently cannot interact, and the page also shows a reconnection gray UI. So, they simply used Blazor Server for refactoring. After days of hard work, the website's front-end has been completely replaced with Blazor Server over Razor Pages, and the annoying reconnection issue has been resolved. Now the website loads very fast, though it might be an illusion, but personally it feels great.

Blazor
C# Script

C# Script

In some cases, it is necessary to dynamically execute C# code during program runtime. For example, storing frequently changing algorithms in a configuration file and reading and executing them from the configuration file during runtime. C# scripts can be used to accomplish these tasks.

12/24/2021 寻找无名的特质 .NET
(24/30) Let's Learn Blazor Together: Using <AuthorizeRouteView>

(24/30) Let's Learn Blazor Together: Using <AuthorizeRouteView>

The day before yesterday, we added content in `Blog.razor` to display both authorized and unauthorized views. However, if the unauthorized content to be displayed is the same across the system, writing it in every component would be a waste of time. We can use `App.razor` to handle unified presentation.

12/23/2021 StrayaWorker Blazor
(20/30) Let's Learn Blazor Together: Logging

(20/30) Let's Learn Blazor Together: Logging

When developing a system, logging is very important. It hasn't been mentioned before; the author only recently thought of it, so let's implement it!

12/21/2021 StrayaWorker Blazor