Где свойство «контекст», определенное в Blazor's AuthorizeRouteView? ⇐ C#
-
Anonymous
Где свойство «контекст», определенное в Blazor's AuthorizeRouteView?
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
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
Мобильная версия