Где свойство «контекст», определенное в Blazor's AuthorizeRouteView?C#

Место общения программистов C#
Anonymous
Где свойство «контекст», определенное в Blazor's AuthorizeRouteView?

Сообщение Anonymous »


I have this AuthorizeRouteView section below, and it baffles me as how & where the "context" variable (line 3) is defined. I looked into dotnetcore source code to no avail. Any help would be appreciated!

@if (!context.User.Identity!.IsAuthenticated) { @**@ } else { You are not authorized to access this resource.
}

Источник: https://stackoverflow.com/questions/701 ... erouteview

Вернуться в «C#»