1 type derived from InteractiveAutoRenderMode
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
SSRRenderModeBoundaryTest.cs (1)
101class AutoRenderModeSubclass : InteractiveAutoRenderMode { }
2 instantiations of InteractiveAutoRenderMode
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
SSRRenderModeBoundaryTest.cs (1)
25new SSRRenderModeBoundary(httpContext, typeof(TestComponent), new InteractiveAutoRenderMode());
Microsoft.AspNetCore.Components.Web (1)
RenderMode\RenderMode.cs (1)
26public static InteractiveAutoRenderMode InteractiveAuto { get; } = new();
33 references to InteractiveAutoRenderMode
Microsoft.AspNetCore.Components.Endpoints (18)
Builder\ResourceCollectionConvention.cs (1)
28if (renderMode is InteractiveWebAssemblyRenderMode or InteractiveAutoRenderMode)
Discovery\ComponentInfo.cs (3)
64if (RenderMode is InteractiveAutoRenderMode { Prerender: var auto }) 66var size = (nameof(InteractiveAutoRenderMode).Length - "RenderModeComparer".Length); 67return $"RenderModeComparer = {nameof(InteractiveAutoRenderMode)[0..size]}, Prerendered = {auto}";
Discovery\RazorComponentApplication.cs (1)
51case InteractiveAutoRenderMode:
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (5)
79var auto = new CopyOnlyStore<InteractiveAutoRenderMode>(); 167InteractiveAutoRenderMode => throw new NotImplementedException("TODO: To be able to support InteractiveAutoRenderMode, we have to serialize persisted state in both WebAssembly and Server formats, or unify the two formats."), 190InteractiveAutoRenderMode { Prerender: true } => true, 237CopyOnlyStore<InteractiveAutoRenderMode> auto, 246public CopyOnlyStore<InteractiveAutoRenderMode> Auto { get; }
Rendering\SSRRenderModeBoundary.cs (6)
47InteractiveAutoRenderMode mode => mode.Prerender, 67if (renderMode is InteractiveServerRenderMode || renderMode is InteractiveAutoRenderMode) 72if (renderMode is InteractiveWebAssemblyRenderMode || renderMode is InteractiveAutoRenderMode) 169InteractiveAutoRenderMode auto => ComponentMarker.Create(ComponentMarker.AutoMarkerType, auto.Prerender, _markerKey), 173if (RenderMode is InteractiveServerRenderMode or InteractiveAutoRenderMode) 183if (RenderMode is InteractiveWebAssemblyRenderMode or InteractiveAutoRenderMode)
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
73renderMode is null || renderMode is InteractiveWebAssemblyRenderMode || renderMode is InteractiveAutoRenderMode;
src\Shared\Components\ProtectedPrerenderComponentApplicationStore.cs (1)
35renderMode is InteractiveServerRenderMode || renderMode is InteractiveAutoRenderMode;
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
EndpointHtmlRendererTest.cs (2)
1293case InteractiveAutoRenderMode: 1413case InteractiveAutoRenderMode:
RazorComponentEndpointDataSourceTest.cs (3)
258[TestRenderMode<InteractiveAutoRenderMode>] 274public override bool Supports(IComponentRenderMode renderMode) => renderMode is InteractiveServerRenderMode or InteractiveAutoRenderMode; 287public override bool Supports(IComponentRenderMode renderMode) => renderMode is InteractiveWebAssemblyRenderMode or InteractiveAutoRenderMode;
Microsoft.AspNetCore.Components.Server (4)
Circuits\RemoteRenderer.cs (1)
312InteractiveServerRenderMode or InteractiveAutoRenderMode => componentActivator.CreateInstance(componentType),
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
117InteractiveServerRenderMode _ or InteractiveAutoRenderMode _ => true,
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
73renderMode is null || renderMode is InteractiveWebAssemblyRenderMode || renderMode is InteractiveAutoRenderMode;
src\Shared\Components\ProtectedPrerenderComponentApplicationStore.cs (1)
35renderMode is InteractiveServerRenderMode || renderMode is InteractiveAutoRenderMode;
Microsoft.AspNetCore.Components.Web (3)
RenderMode\InteractiveAutoRenderMode.cs (2)
12/// Constructs an instance of <see cref="InteractiveAutoRenderMode"/>. 19/// Constructs an instance of <see cref="InteractiveAutoRenderMode"/>
RenderMode\RenderMode.cs (1)
26public static InteractiveAutoRenderMode InteractiveAuto { get; } = new();
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\WebAssemblyRenderer.cs (1)
190InteractiveWebAssemblyRenderMode or InteractiveAutoRenderMode => componentActivator.CreateInstance(componentType),
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
73renderMode is null || renderMode is InteractiveWebAssemblyRenderMode || renderMode is InteractiveAutoRenderMode;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyEndpointProvider.cs (1)
51renderMode is InteractiveWebAssemblyRenderMode or InteractiveAutoRenderMode;