1 write to Component
Microsoft.AspNetCore.Components (1)
Rendering\ComponentState.cs (1)
38
Component
= component ?? throw new ArgumentNullException(nameof(component));
41 references to Component
Microsoft.AspNetCore.Components (20)
CascadingParameterState.cs (2)
30
var componentType = componentState.
Component
.GetType();
83
if (candidate.
Component
is ICascadingValueSupplier valueSupplier && valueSupplier.CanSupplyValue(info))
Rendering\ComponentState.cs (7)
40
? (GetSectionOutletLogicalParent(renderer, (SectionOutlet)parentComponentState!.
Component
) ?? parentComponentState)
117
_nextRenderTree.AssertTreeIsValid(
Component
);
135
if (
Component
is IHandleAfterRender handlerAfterRender)
236
setParametersAsyncTask =
Component
.SetParametersAsync(directAndCascadingParameters);
290
if (
Component
is IAsyncDisposable asyncDisposable)
296
(
Component
as IDisposable)?.Dispose();
323
return $"ComponentId = {ComponentId}, Type = {
Component
.GetType().Name}, Disposed = {_componentWasDisposed}";
Rendering\RenderQueueEntry.cs (1)
22
return $"ComponentId = {ComponentState.ComponentId}, Type = {ComponentState.
Component
.GetType().Name}";
RenderTree\Renderer.cs (4)
146
=> GetComponentRenderMode(GetRequiredComponentState(componentId).
Component
);
320
=> GetRequiredRootComponentState(componentId).
Component
.GetType();
980
_componentStateByComponent.Remove(disposeComponentState.
Component
);
1096
if (candidate.
Component
is IErrorBoundary errorBoundary)
RenderTree\Renderer.Log.cs (5)
25
InitializingRootComponent(logger, componentState.ComponentId, componentState.
Component
.GetType());
29
InitializingChildComponent(logger, componentState.ComponentId, componentState.
Component
.GetType(), parentComponentState.ComponentId, parentComponentState.
Component
.GetType());
41
RenderingComponent(logger, componentState.ComponentId, componentState.
Component
.GetType());
52
DisposingComponent(logger, componentState.ComponentId, componentState.
Component
.GetType());
RenderTree\RenderTreeFrame.cs (1)
189
public IComponent Component => ComponentStateField?.
Component
;
Microsoft.AspNetCore.Components.Endpoints (3)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
201
static string GetName(ComponentState current) => current.
Component
.GetType().Name;
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
68
if (currentComponentState.
Component
is SSRRenderModeBoundary boundary)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
264
if (componentState.
Component
is SSRRenderModeBoundary boundary)
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteRenderer.cs (1)
84
GetComponentState(componentId).
Component
.GetType();
Microsoft.AspNetCore.Components.Server.Tests (5)
Circuits\CircuitHostTest.cs (5)
432
var component = Assert.IsType<DynamicallyAddedComponent>(componentState.
Component
);
458
var component = Assert.IsType<DynamicallyAddedComponent>(componentState.
Component
);
485
var component = Assert.IsType<DynamicallyAddedComponent>(componentState.
Component
);
519
var component = Assert.IsType<DynamicallyAddedComponent>(componentState.
Component
);
556
var component = Assert.IsType<DynamicallyAddedComponent>(componentState.
Component
);
Microsoft.AspNetCore.Components.Tests (12)
CascadingParameterStateTest.cs (12)
85
Assert.Same(states[1].
Component
, match.ValueSupplier);
108
Assert.Same(states[3].
Component
, match.ValueSupplier);
113
Assert.Same(states[1].
Component
, match.ValueSupplier);
134
Assert.Same(states[0].
Component
, match.ValueSupplier);
139
Assert.Same(states[1].
Component
, match.ValueSupplier);
158
Assert.Same(states[0].
Component
, match.ValueSupplier);
177
Assert.Same(states[0].
Component
, match.ValueSupplier);
211
Assert.Same(states[0].
Component
, match.ValueSupplier);
305
Assert.Same(states[0].
Component
, match.ValueSupplier);
328
Assert.Same(states[2].
Component
, match.ValueSupplier);
333
Assert.Same(states[3].
Component
, match.ValueSupplier);
354
Assert.Same(states[1].
Component
, match.ValueSupplier);