7 references to CascadingAuthenticationState
Microsoft.AspNetCore.Components.Authorization (4)
AuthorizeRouteView.cs (2)
81builder.OpenComponent<CascadingAuthenticationState>(0); 82builder.AddComponentParameter(1, nameof(CascadingAuthenticationState.ChildContent), _renderAuthorizeRouteViewCoreDelegate);
AuthorizeViewCore.cs (1)
83throw 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)
292component => Assert.IsType<CascadingAuthenticationState>(component),
CascadingAuthenticationStateTest.cs (2)
22builder.OpenComponent<CascadingAuthenticationState>(0); 179builder.OpenComponent<CascadingAuthenticationState>(0);