2 instantiations of ComponentTypeMetadata
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointFactory.cs (1)
50builder.Metadata.Add(new ComponentTypeMetadata(pageDefinition.Type));
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentEndpointInvokerTest.cs (1)
40new ComponentTypeMetadata(typeof(AuthorizeView)),
8 references to ComponentTypeMetadata
Microsoft.AspNetCore.Components.Endpoints (4)
Builder\ComponentTypeMetadata.cs (1)
15/// Initializes a new instance of <see cref="ComponentTypeMetadata"/>.
Builder\RazorComponentsEndpointHttpContextExtensions.cs (1)
33var pageType = context.GetEndpoint()?.Metadata.GetMetadata<ComponentTypeMetadata>()?.Type;
IRazorComponentEndpointInvoker.cs (1)
17/// The page component is provided via the <see cref="ComponentTypeMetadata"/>.
RazorComponentEndpointInvoker.cs (1)
52var pageComponent = endpoint.Metadata.GetRequiredMetadata<ComponentTypeMetadata>().Type;
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
31if (e.Metadata.GetMetadata<ComponentTypeMetadata>() == null)
RazorComponentEndpointFactoryTest.cs (1)
40Assert.Contains(endpoint.Metadata, m => m is ComponentTypeMetadata);
Microsoft.AspNetCore.Components.Server (1)
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (1)
53if (metadata is ComponentTypeMetadata)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (1)
38var needsCoopHeaders = endpointBuilder.Metadata.OfType<ComponentTypeMetadata>().Any() // e.g., /somecomponent