57 references to FrameType
Microsoft.AspNetCore.Components (32)
ParameterView.cs (1)
260
while (attributeFramesEndIndexExcl < ownerDescendantsEndIndexExcl && frames[attributeFramesEndIndexExcl].
FrameType
== RenderTreeFrameType.Attribute)
Rendering\ComponentState.cs (2)
365
Debug.Assert(currentFrame.
FrameType
!= RenderTreeFrameType.Component || currentFrame.Component != null, "GetComponentKey is being invoked too soon, ComponentState is not fully constructed.");
367
if (currentFrame.
FrameType
!= RenderTreeFrameType.Component ||
Rendering\RenderTreeBuilder.cs (2)
428
throw new ArgumentException($"The {nameof(frame.
FrameType
)} must be {RenderTreeFrameType.Attribute}.");
816
throw new InvalidOperationException($"Render output is invalid for component of type '{component.GetType().FullName}'. A frame of type '{invalidFrame.
FrameType
}' was left unclosed. Do not use try/catch inside rendering logic, because partial output cannot be undone.");
RenderTree\Renderer.cs (2)
607
throw new ArgumentException($"The frame's {nameof(RenderTreeFrame.
FrameType
)} property must equal {RenderTreeFrameType.Component}", nameof(frameIndex));
637
switch (frame.
FrameType
)
RenderTree\RenderTreeFrame.cs (25)
70
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Element"/>
77
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Element"/>,
83
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Element"/>,
95
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Text"/>,
110
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Attribute"/>
116
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Attribute"/>,
122
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Attribute"/>,
128
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Attribute"/>,
149
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Component"/>
155
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Component"/>
162
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Component"/>,
168
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Component"/>,
174
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Component"/>,
180
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Component"/>,
186
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Component"/>,
198
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Region"/>
212
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.ElementReferenceCapture"/>,
218
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.ElementReferenceCapture"/>,
231
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.ComponentReferenceCapture"/>,
243
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.ComponentReferenceCapture"/>,
255
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.Markup"/>,
267
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.ComponentRenderMode"/>,
276
if (
FrameType
!= RenderTreeFrameType.ComponentRenderMode)
293
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.NamedEvent"/>,
299
/// If the <see cref="
FrameType
"/> property equals <see cref="RenderTreeFrameType.NamedEvent"/>,
Microsoft.AspNetCore.Components.Endpoints (11)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (4)
219
if (frame.
FrameType
!= RenderTreeFrameType.NamedEvent)
222
throw new InvalidOperationException($"The named value frame for component '{componentId}' at index '{frameIndex}' unexpectedly matches a frame of type '{frame.
FrameType
}'.");
234
if (candidate.
FrameType
== RenderTreeFrameType.Attribute)
241
else if (candidate.
FrameType
== RenderTreeFrameType.Element)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
309
if (frame.
FrameType
== RenderTreeFrameType.Component &&
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (2)
58
if (frame.
FrameType
is not RenderTreeFrameType.Component)
67
for (var j = i + 1; j < componentSubtreeEnd && frames.Array[j].
FrameType
is RenderTreeFrameType.Attribute; j++)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (4)
47
switch (frame.
FrameType
)
67
while (position < subtreeEnd && frames[position].
FrameType
is RenderTreeFrameType.Attribute)
115
while (position < subtreeEnd && frames[position].
FrameType
is RenderTreeFrameType.Attribute)
160
throw new NotImplementedException($"Serialization for frame type '{frame.
FrameType
}' is not implemented.");
Microsoft.AspNetCore.Components.Server (9)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (3)
134
_binaryWriter.Write((int)frame.
FrameType
);
142
switch (frame.
FrameType
)
201
throw new ArgumentException($"Unsupported frame type: {frame.
FrameType
}");
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (2)
58
if (frame.
FrameType
is not RenderTreeFrameType.Component)
67
for (var j = i + 1; j < componentSubtreeEnd && frames.Array[j].
FrameType
is RenderTreeFrameType.Attribute; j++)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (4)
47
switch (frame.
FrameType
)
67
while (position < subtreeEnd && frames[position].
FrameType
is RenderTreeFrameType.Attribute)
115
while (position < subtreeEnd && frames[position].
FrameType
is RenderTreeFrameType.Attribute)
160
throw new NotImplementedException($"Serialization for frame type '{frame.
FrameType
}' is not implemented.");
Microsoft.AspNetCore.Components.Web (5)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (5)
77
switch (frame.
FrameType
)
100
throw new InvalidOperationException($"Invalid element frame type '{frame.
FrameType
}'.");
262
if (frames.Array[frameIndex].
FrameType
== RenderTreeFrameType.Element)
296
if (frame.
FrameType
!= RenderTreeFrameType.Attribute)
298
if (frame.
FrameType
== RenderTreeFrameType.ElementReferenceCapture)