1 write to Type
Microsoft.AspNetCore.Components.Endpoints (1)
src\Shared\Components\ComponentMarker.cs (1)
69Type = type,
28 references to Type
Microsoft.AspNetCore.Components.Endpoints (4)
Rendering\EndpointHtmlRenderer.Streaming.cs (2)
283if (!_httpContext.Response.HasStarted && marker.Type is ComponentMarker.ServerMarkerType or ComponentMarker.AutoMarkerType) 288if (marker.Type is ComponentMarker.WebAssemblyMarkerType or ComponentMarker.AutoMarkerType
src\Shared\Components\ComponentMarker.cs (2)
97switch (Type) 106return $"Unknown Component Type: {Type}, Key: {Key?.FormattedComponentKey}";
Microsoft.AspNetCore.Components.Endpoints.Tests (24)
EndpointHtmlRendererTest.cs (24)
91Assert.Equal("webassembly", marker.Type); 182Assert.Equal("webassembly", preambleMarker.Type); 194Assert.Null(epilogueMarker.Type); 225Assert.Equal("webassembly", marker.Type); 263Assert.Equal("webassembly", marker.Type); 300Assert.Equal("webassembly", preambleMarker.Type); 321Assert.Null(epilogueMarker.Type); 350Assert.Equal("webassembly", preambleMarker.Type); 370Assert.Null(epilogueMarker.Type); 411Assert.Equal("server", marker.Type); 445Assert.Equal("server", preambleMarker.Type); 463Assert.Null(epilogueMarker.Type); 565Assert.Equal("server", marker.Type); 605Assert.Equal("server", marker.Type); 646Assert.Equal("server", preambleMarker.Type); 673Assert.Null(epilogueMarker.Type); 698Assert.Equal("server", preambleMarker.Type); 725Assert.Null(epilogueMarker.Type); 766Assert.Equal("server", marker.Type); 807Assert.Equal("server", preambleMarker.Type); 845Assert.Equal("webassembly", preambleMarker.Type); 1359Assert.Equal("server", marker.Type); 1388Assert.Equal("server", marker.Type); 1458Assert.Equal("webassembly", preambleMarker.Type);