1 write to Type
Microsoft.AspNetCore.Components.Endpoints (1)
src\Shared\Components\ComponentMarker.cs (1)
69Type = type,
25 references to Type
Microsoft.AspNetCore.Components.Endpoints (4)
Rendering\EndpointHtmlRenderer.Streaming.cs (2)
282if (!_httpContext.Response.HasStarted && marker.Type is ComponentMarker.ServerMarkerType or ComponentMarker.AutoMarkerType) 287if (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 (21)
EndpointHtmlRendererTest.cs (21)
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); 410Assert.Equal("server", marker.Type); 443Assert.Equal("server", preambleMarker.Type); 461Assert.Null(epilogueMarker.Type); 561Assert.Equal("server", marker.Type); 600Assert.Equal("server", marker.Type); 640Assert.Equal("server", preambleMarker.Type); 667Assert.Null(epilogueMarker.Type); 691Assert.Equal("server", preambleMarker.Type); 718Assert.Null(epilogueMarker.Type); 1222Assert.Equal("server", marker.Type); 1251Assert.Equal("server", marker.Type); 1321Assert.Equal("webassembly", preambleMarker.Type);