1 write to RenderMode
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\SSRRenderModeBoundary.cs (1)
52RenderMode = renderMode;
9 references to RenderMode
Microsoft.AspNetCore.Components.Endpoints (9)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
55return ssrRenderBoundary.RenderMode;
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
327captureWriter.CreateLiveCachedComponent(liveCachedComponentType, liveCachedComponentBoundary?.RenderMode, liveCachedComponentCapture, GetRenderFragmentSerializationLogger());
Rendering\SSRRenderModeBoundary.cs (7)
137if (RenderMode is InteractiveWebAssemblyRenderMode) 177throw new InvalidOperationException($"Cannot pass RenderFragment<T> parameter '{name}' to component '{_componentType.Name}' with rendermode '{RenderMode.GetType().Name}'. Templated content can't be passed across a rendermode boundary, because it is arbitrary code and cannot be serialized."); 183throw new InvalidOperationException($"Cannot pass the parameter '{name}' to component '{_componentType.Name}' with rendermode '{RenderMode.GetType().Name}'. This is because the parameter is of the delegate type '{value.GetType()}', which is arbitrary code and cannot be serialized."); 216var marker = RenderMode switch 221_ => throw new UnreachableException($"Unknown render mode {RenderMode.GetType().FullName}"), 224if (RenderMode is InteractiveServerRenderMode or InteractiveAutoRenderMode) 234if (RenderMode is InteractiveWebAssemblyRenderMode or InteractiveAutoRenderMode)