Category

Blazor

Blazor framework, component development, and project practice

65 articles
4 Current page
(29/30)Learn Blazor Together: Blazor Unit Testing

(29/30)Learn Blazor Together: Blazor Unit Testing

The most boring part of developing a system is probably fixing bugs, especially errors like trying to access a null object (`Object reference not set to an instance of an object.`), which is the most common problem most people encounter when they first step into programming. To break free from the tedious bug-fixing process, this article introduces `unit testing`.

StrayaWorker 12/25/2021 8:39 PM
(28/30) Learning Blazor Together: Policy-based Authorization

(28/30) Learning Blazor Together: Policy-based Authorization

It was mentioned earlier that `ASP.NET Core Identity` uses `Claim`-based authentication. In fact, `ASP.NET Core Identity` has different types of authorization methods, the simplest being `Login Authorization`, `Role Authorization`, and `Claim Authorization`. However, all of the above are implemented in one way: Policy-based Authorization.

StrayaWorker 12/25/2021 5:51 PM
(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.

StrayaWorker 12/23/2021 10:51 PM