12 instantiations of SSRRenderModeBoundary
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\EndpointHtmlRenderer.Prerendering.cs (2)
41return new SSRRenderModeBoundary(_httpContext, componentType, renderMode); 123: new SSRRenderModeBoundary(_httpContext, componentType, prerenderMode);
Microsoft.AspNetCore.Components.Endpoints.Tests (10)
EndpointHtmlRendererTest.cs (2)
1539var ssrBoundary = new SSRRenderModeBoundary(httpContext, typeof(PersistenceComponent), persistenceMode); 1604var ssrBoundary = new SSRRenderModeBoundary(httpContext, typeof(PersistenceComponent), configuredMode);
SSRRenderModeBoundaryTest.cs (8)
23new SSRRenderModeBoundary(httpContext, typeof(TestComponent), new InteractiveServerRenderMode()); 24new SSRRenderModeBoundary(httpContext, typeof(TestComponent), new InteractiveWebAssemblyRenderMode()); 25new SSRRenderModeBoundary(httpContext, typeof(TestComponent), new InteractiveAutoRenderMode()); 36var ex = Assert.Throws<InvalidOperationException>(() => new SSRRenderModeBoundary( 50var ex = Assert.Throws<InvalidOperationException>(() => new SSRRenderModeBoundary( 64var ex = Assert.Throws<InvalidOperationException>(() => new SSRRenderModeBoundary( 78var ex = Assert.Throws<InvalidOperationException>(() => new SSRRenderModeBoundary( 116var boundary = new SSRRenderModeBoundary(httpContext, typeof(TestComponent), new InteractiveServerRenderMode());
12 references to SSRRenderModeBoundary
Microsoft.AspNetCore.Components.Endpoints (9)
Rendering\EndpointComponentState.cs (1)
52if (ParentComponentState != null && ParentComponentState.Component is SSRRenderModeBoundary boundary)
Rendering\EndpointHtmlRenderer.Prerendering.cs (7)
28var closestRenderModeBoundary = parentComponentId.HasValue 48var ssrRenderBoundary = GetClosestRenderModeBoundary(componentState); 58private SSRRenderModeBoundary? GetClosestRenderModeBoundary(int componentId) 64private static SSRRenderModeBoundary? GetClosestRenderModeBoundary(ComponentState componentState) 70if (currentComponentState.Component is SSRRenderModeBoundary boundary) 311if (boundaryComponentState is null || boundaryComponentState.Component is not SSRRenderModeBoundary boundary) 333frame.Component is SSRRenderModeBoundary candidate &&
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
277if (componentState.Component is SSRRenderModeBoundary boundary)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
EndpointHtmlRendererTest.cs (2)
1539var ssrBoundary = new SSRRenderModeBoundary(httpContext, typeof(PersistenceComponent), persistenceMode); 1604var ssrBoundary = new SSRRenderModeBoundary(httpContext, typeof(PersistenceComponent), configuredMode);
SSRRenderModeBoundaryTest.cs (1)
116var boundary = new SSRRenderModeBoundary(httpContext, typeof(TestComponent), new InteractiveServerRenderMode());