1 write to Component
Microsoft.AspNetCore.Components (1)
Rendering\ComponentState.cs (1)
38
Component
= component ?? throw new ArgumentNullException(nameof(component));
48 references to Component
Microsoft.AspNetCore.Components (27)
CascadingParameterState.cs (2)
29
var componentType = componentState.
Component
.GetType();
82
if (candidate.
Component
is ICascadingValueSupplier valueSupplier && valueSupplier.CanSupplyValue(info))
Rendering\ComponentState.cs (7)
40
? (GetSectionOutletLogicalParent(renderer, (SectionOutlet)parentComponentState!.
Component
) ?? parentComponentState)
119
_nextRenderTree.AssertTreeIsValid(
Component
);
137
if (
Component
is IHandleAfterRender handlerAfterRender)
238
setParametersAsyncTask =
Component
.SetParametersAsync(directAndCascadingParameters);
292
if (
Component
is IAsyncDisposable asyncDisposable)
298
(
Component
as IDisposable)?.Dispose();
325
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 (6)
152
=> GetComponentRenderMode(GetRequiredComponentState(componentId).
Component
);
326
=> GetRequiredRootComponentState(componentId).
Component
.GetType();
936
_renderingMetrics?.RenderStart(componentState.
Component
.GetType().FullName);
943
_renderingMetrics?.RenderEnd(componentState.
Component
.GetType().FullName, renderFragmentException, startTime, Stopwatch.GetTimestamp());
993
_componentStateByComponent.Remove(disposeComponentState.
Component
);
1109
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
;
SupplyParameterFromPersistentComponentStateValueProvider.cs (5)
56
var propertyGetter = ResolvePropertyGetter(subscriber.
Component
.GetType(), propertyName);
57
var property = propertyGetter.GetValue(subscriber.
Component
);
64
}, subscriber.Renderer.GetComponentRenderMode(subscriber.
Component
));
235
!ReferenceEquals(componentState.
Component
, currentFrame.Component))
248
private static string GetComponentType(ComponentState componentState) => componentState.
Component
.GetType().FullName!;
Microsoft.AspNetCore.Components.Endpoints (3)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
211
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)
265
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);