7 references to CascadingAuthenticationState
Microsoft.AspNetCore.Components.Authorization (4)
AuthorizeRouteView.cs (2)
81
builder.OpenComponent<
CascadingAuthenticationState
>(0);
82
builder.AddComponentParameter(1, nameof(
CascadingAuthenticationState
.ChildContent), _renderAuthorizeRouteViewCoreDelegate);
AuthorizeViewCore.cs (1)
83
throw new InvalidOperationException($"Authorization requires a cascading parameter of type Task<{nameof(AuthenticationState)}>. Consider using {typeof(
CascadingAuthenticationState
).Name} to supply this.");
CascadingAuthenticationStateServiceCollectionExtensions.cs (1)
16
/// having a <see cref="
CascadingAuthenticationState
"/> component at the root of your component hierarchy.
Microsoft.AspNetCore.Components.Authorization.Tests (3)
AuthorizeRouteViewTest.cs (1)
292
component => Assert.IsType<
CascadingAuthenticationState
>(component),
CascadingAuthenticationStateTest.cs (2)
22
builder.OpenComponent<
CascadingAuthenticationState
>(0);
179
builder.OpenComponent<
CascadingAuthenticationState
>(0);