1 type derived from InteractiveServerRenderMode
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
SSRRenderModeBoundaryTest.cs (1)
99class ServerRenderModeSubclass : InteractiveServerRenderMode { }
9 instantiations of InteractiveServerRenderMode
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
EndpointHtmlRendererTest.cs (5)
304var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(false), ParameterView.Empty); 397var firstResult = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(true), ParameterView.Empty); 401var secondResult = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(false), ParameterView.Empty); 455var result = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), new InteractiveServerRenderMode(false), parameters); 494var result = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), new InteractiveServerRenderMode(false), parameters);
HotReloadServiceTests.cs (1)
250result.Options.ConfiguredRenderModes.Add(new InteractiveServerRenderMode());
SSRRenderModeBoundaryTest.cs (1)
23new SSRRenderModeBoundary(httpContext, typeof(TestComponent), new InteractiveServerRenderMode());
Microsoft.AspNetCore.Components.Web (1)
RenderMode\RenderMode.cs (1)
15public static InteractiveServerRenderMode InteractiveServer { get; } = new();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\HtmlHelperComponentExtensions.cs (1)
73RenderMode.Server => new InteractiveServerRenderMode(prerender: false),
35 references to InteractiveServerRenderMode
Microsoft.AspNetCore.Components.Endpoints (19)
Builder\RazorComponentDataSourceOptions.cs (3)
20(InteractiveServerRenderMode, InteractiveServerRenderMode) => true, 26InteractiveServerRenderMode => 1,
Discovery\ComponentInfo.cs (3)
54if (RenderMode is InteractiveServerRenderMode { Prerender: var server }) 56var size = (nameof(InteractiveServerRenderMode).Length - "RenderModeComparer".Length); 57return $"RenderModeComparer = {nameof(InteractiveServerRenderMode)[0..size]}, Prerendered = {server}";
Discovery\RazorComponentApplication.cs (1)
45case InteractiveServerRenderMode:
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (6)
44InteractiveServerRenderMode => new ProtectedPrerenderComponentApplicationStore(_httpContext.RequestServices.GetRequiredService<IDataProtectionProvider>()), 78var server = new CopyOnlyStore<InteractiveServerRenderMode>(); 165InteractiveServerRenderMode => InvokedRenderModes.Mode.Server, 188InteractiveServerRenderMode { Prerender: true } => true, 236CopyOnlyStore<InteractiveServerRenderMode> server, 245public CopyOnlyStore<InteractiveServerRenderMode> Server { get; }
Rendering\SSRRenderModeBoundary.cs (5)
45InteractiveServerRenderMode mode => mode.Prerender, 67if (renderMode is InteractiveServerRenderMode || renderMode is InteractiveAutoRenderMode) 69AssertRenderModeIsConfigured<InteractiveServerRenderMode>(componentType, renderMode, configuredModes, "AddInteractiveServerRenderMode"); 167InteractiveServerRenderMode server => ComponentMarker.Create(ComponentMarker.ServerMarkerType, server.Prerender, _markerKey), 173if (RenderMode is InteractiveServerRenderMode or InteractiveAutoRenderMode)
src\Shared\Components\ProtectedPrerenderComponentApplicationStore.cs (1)
35renderMode is InteractiveServerRenderMode || renderMode is InteractiveAutoRenderMode;
Microsoft.AspNetCore.Components.Endpoints.Tests (8)
EndpointHtmlRendererTest.cs (5)
1217case InteractiveServerRenderMode: 1283case InteractiveServerRenderMode: 1337case InteractiveServerRenderMode: 1403case InteractiveServerRenderMode: 1472case InteractiveServerRenderMode:
HotReloadServiceTests.cs (1)
258[TestRenderMode<InteractiveServerRenderMode>]
RazorComponentEndpointDataSourceTest.cs (2)
255[TestRenderMode<InteractiveServerRenderMode>] 274public override bool Supports(IComponentRenderMode renderMode) => renderMode is InteractiveServerRenderMode or InteractiveAutoRenderMode;
Microsoft.AspNetCore.Components.Server (5)
Builder\InternalServerRenderMode.cs (1)
8internal class InternalServerRenderMode(ServerComponentsEndpointOptions options) : InteractiveServerRenderMode
Circuits\RemoteRenderer.cs (1)
312InteractiveServerRenderMode or InteractiveAutoRenderMode => componentActivator.CreateInstance(componentType),
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (2)
63if (renderMode is InteractiveServerRenderMode) 117InteractiveServerRenderMode _ or InteractiveAutoRenderMode _ => true,
src\Shared\Components\ProtectedPrerenderComponentApplicationStore.cs (1)
35renderMode is InteractiveServerRenderMode || renderMode is InteractiveAutoRenderMode;
Microsoft.AspNetCore.Components.Web (3)
RenderMode\InteractiveServerRenderMode.cs (2)
12/// Constructs an instance of <see cref="InteractiveServerRenderMode"/>. 19/// Constructs an instance of <see cref="InteractiveServerRenderMode"/>
RenderMode\RenderMode.cs (1)
15public static InteractiveServerRenderMode InteractiveServer { get; } = new();