Category

Blazor

Blazor Framework, Component Development and Project Practice

65 篇文章
4 当前页
(29/30) Everyone learn Blazor together: Blazor unit testing

(29/30) Everyone learn Blazor together: Blazor unit testing

Probably the most boring process of developing a system is to solve bugs, especially the error of trying to value null objects (`Object reference not set to an instance of an object.`). This should be the most common problem that most people encounter when they first step into the programming field. In order to relieve themselves from the boring process of solving bugs, this article introduces 'unit testing'.

StrayaWorker 12/25/2021 8:39 PM
(28/30) Everyone learns Blazor together: Policy-based authorization

(28/30) Everyone learns Blazor together: Policy-based authorization

It was mentioned before that 'ASP.NET Core Identity' uses 'Claim' based authentication. In fact,'ASP.NET Core Identity' has different types of authorization methods, the simplest are 'login authorization','role authorization', and 'Claim authorization', but all of the above are implemented in one way: 'Policy-based authorization'.

StrayaWorker 12/25/2021 5:51 PM
(24/30) Everyone learn Blazor together: <AuthorizeRouteView>Use

(24/30) Everyone learn Blazor together: <AuthorizeRouteView>Use

The day before yesterday, I added verified and failed display content to 'Blog.razor'. However, if the system wants to present the same content that failed to verify, it would be a waste of time to write it in every Component. You can use 'App.razor' to help us do unified presentation.

StrayaWorker 12/23/2021 10:51 PM