23 references to AuthorizeView
Microsoft.AspNetCore.Components.Authorization (4)
AuthorizeDataAdapter.cs (2)
11private readonly AuthorizeView _component; 13public AuthorizeDataAdapter(AuthorizeView component)
AuthorizeRouteView.cs (1)
11/// Combines the behaviors of <see cref="AuthorizeView"/> and <see cref="RouteView"/>,
AuthorizeView.cs (1)
16/// Constructs an instance of <see cref="AuthorizeView"/>.
Microsoft.AspNetCore.Components.Authorization.Tests (17)
AuthorizeViewTest.cs (17)
37var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 66var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 100var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 130var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 166var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 202.GetComponentFrames<AuthorizeView>().Single().ComponentId; 267var authorizeViewComponentId = batch1.GetComponentFrames<AuthorizeView>().Single().ComponentId; 310var authorizeViewComponentId = Assert.Single(batch1.GetComponentFrames<AuthorizeView>()).ComponentId; 368var authorizeViewComponentId = batch1.GetComponentFrames<AuthorizeView>().Single().ComponentId; 507builder.OpenComponent<AuthorizeView>(0); 508builder.AddComponentParameter(1, nameof(AuthorizeView.ChildContent), childContent); 509builder.AddComponentParameter(2, nameof(AuthorizeView.Authorized), authorized); 510builder.AddComponentParameter(3, nameof(AuthorizeView.NotAuthorized), notAuthorized); 511builder.AddComponentParameter(4, nameof(AuthorizeView.Authorizing), authorizing); 512builder.AddComponentParameter(5, nameof(AuthorizeView.Policy), policy); 513builder.AddComponentParameter(6, nameof(AuthorizeView.Roles), roles); 514builder.AddComponentParameter(7, nameof(AuthorizeView.Resource), resource);
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
RazorComponentEndpointInvokerTest.cs (2)
40new ComponentTypeMetadata(typeof(AuthorizeView)), 41new RootComponentMetadata(typeof(AuthorizeView))),