5 references to Authorized
Microsoft.AspNetCore.Components.Authorization (4)
AuthorizeRouteView.cs (1)
91
builder.AddComponentParameter(2, nameof(AuthorizeRouteViewCore.
Authorized
), _renderAuthorizedDelegate);
AuthorizeViewCore.cs (3)
61
var authorized =
Authorized
?? ChildContent;
76
if (ChildContent != null &&
Authorized
!= null)
78
throw new InvalidOperationException($"Do not specify both '{nameof(
Authorized
)}' and '{nameof(ChildContent)}'.");
Microsoft.AspNetCore.Components.Authorization.Tests (1)
AuthorizeViewTest.cs (1)
509
builder.AddComponentParameter(2, nameof(AuthorizeView.
Authorized
), authorized);