1 write to Component
Microsoft.AspNetCore.Components (1)
Rendering\ComponentState.cs (1)
39
Component
= component ?? throw new ArgumentNullException(nameof(component));
46 references to Component
Microsoft.AspNetCore.Components (25)
CascadingParameterState.cs (2)
29
var componentType = componentState.
Component
.GetType();
82
if (candidate.
Component
is ICascadingValueSupplier valueSupplier && valueSupplier.CanSupplyValue(info))
Rendering\ComponentState.cs (7)
41
? (GetSectionOutletLogicalParent(renderer, (SectionOutlet)parentComponentState!.
Component
) ?? parentComponentState)
125
_nextRenderTree.AssertTreeIsValid(
Component
);
143
if (
Component
is IHandleAfterRender handlerAfterRender)
246
setParametersAsyncTask =
Component
.SetParametersAsync(directAndCascadingParameters);
311
if (
Component
is IAsyncDisposable asyncDisposable)
317
(
Component
as IDisposable)?.Dispose();
344
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)
156
=> GetComponentRenderMode(GetRequiredComponentState(componentId).
Component
);
330
=> GetRequiredRootComponentState(componentId).
Component
.GetType();
1045
_componentStateByComponent.Remove(disposeComponentState.
Component
);
1161
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)
244
static string GetName(ComponentState current) => current.
Component
.GetType().Name;
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
69
if (currentComponentState.
Component
is SSRRenderModeBoundary boundary)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
267
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);