3 instantiations of RootComponentMetadata
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\RazorComponentEndpointFactory.cs (1)
51builder.Metadata.Add(new RootComponentMetadata(rootComponent));
Builder\RenderModeEndpointProvider.cs (1)
44builder.Metadata.Add(new RootComponentMetadata(rootComponent));
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentEndpointInvokerTest.cs (1)
41new RootComponentMetadata(typeof(AuthorizeView))),
15 references to RootComponentMetadata
Microsoft.AspNetCore.Components.Endpoints (3)
Builder\RootComponentMetadata.cs (1)
15/// Initializes a new instance of <see cref="RootComponentMetadata"/>.
IRazorComponentEndpointInvoker.cs (1)
15/// Razor component endpoints provide the root component via the <see cref="RootComponentMetadata"/>
RazorComponentEndpointInvoker.cs (1)
51var rootComponent = endpoint.Metadata.GetRequiredMetadata<RootComponentMetadata>().Type;
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
HotReloadServiceTests.cs (11)
50Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 67var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 85e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 95var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 108var endpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 118var updatedEndpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 134var endpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 136var compositeEndpoint = Assert.IsType<RouteEndpoint>(Assert.Single(compositeEndpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 145var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 146var compositePageEndpoints = compositeEndpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 183var endpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null));
RazorComponentEndpointFactoryTest.cs (1)
39Assert.Contains(endpoint.Metadata, m => m is RootComponentMetadata);