23 references to AuthorizeView
Microsoft.AspNetCore.Components.Authorization (4)
AuthorizeDataAdapter.cs (2)
11
private readonly
AuthorizeView
_component;
13
public 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)
37
var diff = renderer.Batches.Single().GetComponentDiffs<
AuthorizeView
>().Single();
66
var diff = renderer.Batches.Single().GetComponentDiffs<
AuthorizeView
>().Single();
100
var diff = renderer.Batches.Single().GetComponentDiffs<
AuthorizeView
>().Single();
130
var diff = renderer.Batches.Single().GetComponentDiffs<
AuthorizeView
>().Single();
166
var diff = renderer.Batches.Single().GetComponentDiffs<
AuthorizeView
>().Single();
202
.GetComponentFrames<
AuthorizeView
>().Single().ComponentId;
267
var authorizeViewComponentId = batch1.GetComponentFrames<
AuthorizeView
>().Single().ComponentId;
310
var authorizeViewComponentId = Assert.Single(batch1.GetComponentFrames<
AuthorizeView
>()).ComponentId;
368
var authorizeViewComponentId = batch1.GetComponentFrames<
AuthorizeView
>().Single().ComponentId;
507
builder.OpenComponent<
AuthorizeView
>(0);
508
builder.AddComponentParameter(1, nameof(
AuthorizeView
.ChildContent), childContent);
509
builder.AddComponentParameter(2, nameof(
AuthorizeView
.Authorized), authorized);
510
builder.AddComponentParameter(3, nameof(
AuthorizeView
.NotAuthorized), notAuthorized);
511
builder.AddComponentParameter(4, nameof(
AuthorizeView
.Authorizing), authorizing);
512
builder.AddComponentParameter(5, nameof(
AuthorizeView
.Policy), policy);
513
builder.AddComponentParameter(6, nameof(
AuthorizeView
.Roles), roles);
514
builder.AddComponentParameter(7, nameof(
AuthorizeView
.Resource), resource);
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
RazorComponentEndpointInvokerTest.cs (2)
40
new ComponentTypeMetadata(typeof(
AuthorizeView
)),
41
new RootComponentMetadata(typeof(
AuthorizeView
))),