92 implementations of IComponent
BasicTestApp (8)
ServerReliability\ThrowingAttachComponent.cs (1)
8public class ThrowingAttachComponent : IComponent
ServerReliability\ThrowingConstructorComponent.cs (1)
8public class ThrowingConstructorComponent : IComponent
ServerReliability\ThrowingDisposeComponent.cs (1)
8public class ThrowingDisposeComponent : IComponent, IDisposable
ServerReliability\ThrowingOnAfterRenderAsyncComponent.cs (1)
8public class ThrowingOnAfterRenderAsyncComponent : IComponent, IHandleAfterRender
ServerReliability\ThrowingOnAfterRenderSyncComponent.cs (1)
8public class ThrowingOnAfterRenderSyncComponent : IComponent, IHandleAfterRender
ServerReliability\ThrowingRenderComponent.cs (1)
8public class ThrowingRenderComponent : IComponent
ServerReliability\ThrowingSetParametersAsyncComponent.cs (1)
8public class ThrowingSetParametersAsyncComponent : IComponent
ServerReliability\ThrowingSetParametersSyncComponent.cs (1)
8public class ThrowingSetParametersSyncComponent : IComponent
Microsoft.AspNetCore.Components (9)
CascadingValue.cs (1)
11public class CascadingValue<TValue> : ICascadingValueSupplier, IComponent
ComponentBase.cs (1)
22public abstract class ComponentBase : IComponent, IHandleEvent, IHandleAfterRender
DynamicComponent.cs (1)
13public class DynamicComponent : IComponent
LayoutView.cs (1)
15public class LayoutView : IComponent
RouteView.cs (1)
18public class RouteView : IComponent
Routing\Router.cs (1)
21public partial class Router : IComponent, IHandleAfterRender, IDisposable
Sections\SectionContent.cs (1)
9public sealed class SectionContent : IComponent, IDisposable
Sections\SectionOutlet.cs (2)
11public sealed class SectionOutlet : IComponent, IDisposable 126internal sealed class SectionOutletContentRenderer : IComponent
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\AutoRenderComponent.cs (1)
9public abstract class AutoRenderComponent : IComponent
Microsoft.AspNetCore.Components.Endpoints (4)
Assets\ImportMap.cs (1)
13public sealed class ImportMap : IComponent
Assets\LinkPreload.cs (1)
12public sealed class LinkPreload : IComponent
RazorComponentEndpointHost.cs (1)
20internal class RazorComponentEndpointHost : IComponent
Rendering\SSRRenderModeBoundary.cs (1)
21internal class SSRRenderModeBoundary : IComponent
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
315private class App : IComponent
EndpointHtmlRendererTest.cs (1)
1744class PersistenceComponent : IComponent
RazorComponentEndpointDataSourceTest.cs (3)
322public class App : IComponent 336public class Index : IComponent 350public class Counter : IComponent
src\Components\Shared\test\AutoRenderComponent.cs (1)
9public abstract class AutoRenderComponent : IComponent
SSRRenderModeBoundaryTest.cs (1)
90class TestComponent : IComponent
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\AutoRenderComponent.cs (1)
9public abstract class AutoRenderComponent : IComponent
Microsoft.AspNetCore.Components.QuickGrid (1)
Infrastructure\ColumnsCollectedNotifier.cs (1)
36public sealed class ColumnsCollectedNotifier<TGridItem> : IComponent
Microsoft.AspNetCore.Components.Server.Tests (13)
Circuits\CircuitHostTest.cs (5)
858private class ThrowOnDisposeComponent : IComponent, IDisposable 873private class RenderInParallelComponent : IComponent, IDisposable 923private class PerformJSInteropOnDisposeComponent : IComponent, IAsyncDisposable 976private class DynamicallyAddedComponent : IComponent, IDisposable 1020private class TestComponent() : IComponent, IHandleAfterRender
Circuits\CircuitPersistenceManagerTest.cs (2)
580public class RootComponent : IComponent 611public class SecondRootComponent : IComponent
Circuits\RemoteRendererTest.cs (2)
729private class TestComponent : IComponent, IHandleAfterRender 774private class AutoParameterTestComponent : IComponent
Circuits\RenderBatchWriterTest.cs (1)
376class FakeComponent : IComponent
Circuits\ServerComponentDeserializerTest.cs (2)
508private class TestComponent : IComponent 515private class DynamicallyAddedComponent : IComponent
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
148private class MyComponent : IComponent
Microsoft.AspNetCore.Components.Tests (35)
CascadingParameterStateTest.cs (1)
499class TestComponentBase : IComponent
ComponentFactoryTest.cs (5)
264private class EmptyComponent : IComponent 277private class ComponentWithInjectProperties : IComponent 307private class ComponentWithNonInjectableProperties : IComponent 325public class ComponentWithConstructorInjection : IComponent 391private class ComponentWithRenderMode : IComponent
DependencyInjectionTest.cs (1)
228class TestComponent : IComponent
EventCallbackFactoryBinderExtensionsTest.cs (1)
652private class EventCountingComponent : IComponent, IHandleEvent
EventCallbackFactoryTest.cs (1)
614private class EventComponent : IComponent, IHandleEvent
EventCallbackTest.cs (1)
454private class EventCountingComponent : IComponent, IHandleEvent
ParameterViewTest.cs (1)
589private class FakeComponent : IComponent
RendererTest.cs (14)
3980private class ConstructorThrowingComponent : IComponent 4020private class AttachThrowingComponent : IComponent 5115private class ComponentWithRenderMode : IComponent 5127private class ComponentWithUnknownRenderMode : IComponent 5183private class TestComponent : IComponent, IDisposable 5251private class FakeComponent : IComponent 5274private class EventComponent : AutoRenderComponent, IComponent, IHandleEvent 5414private class RendersSelfAfterEventComponent : IComponent, IHandleEvent 5447private class MultiRendererComponent : IComponent 5499private class AfterRenderCaptureComponent : AutoRenderComponent, IComponent, IHandleAfterRender 5570private class AsyncComponent : IComponent 5610private class OuterEventComponent : IComponent, IHandleEvent 5946class ParameterViewIllegalCapturingComponent : IComponent 6066private sealed class ImplicitConversionComponent : IComponent
Rendering\RenderTreeBuilderTest.cs (1)
2279private class TestComponent : IComponent
RenderTreeDiffBuilderTest.cs (5)
2470private class FakeComponent : IComponent 2497private class FakeComponent2 : IComponent 2506private class CaptureSetParametersComponent : IComponent 2521private class DisposableComponent : IComponent, IDisposable 2531private class NonDisposableComponent : IComponent
src\Components\Shared\test\AutoRenderComponent.cs (1)
9public abstract class AutoRenderComponent : IComponent
SupplyParameterFromPersistentComponentStateValueProviderTests.cs (3)
645private class TestComponent : IComponent 654private class ValueTypeTestComponent : IComponent 689private class ParentComponent : IComponent
Microsoft.AspNetCore.Components.Web (3)
Forms\AntiforgeryToken.cs (1)
12public class AntiforgeryToken : IComponent
Forms\Mapping\FormMappingScope.cs (1)
13public sealed class FormMappingScope : ICascadingValueSupplier, IComponent
Routing\NavigationLock.cs (1)
12public sealed class NavigationLock : IComponent, IHandleAfterRender, IAsyncDisposable
Microsoft.AspNetCore.Components.Web.Tests (5)
Forms\Mapping\SupplyParameterFromFormTest.cs (1)
98class TestComponentBase : IComponent
HtmlRendering\HtmlRendererTest.cs (3)
732private class ComponentWithParameters : IComponent 1266private class ChildComponent : IComponent 1295private class TestComponent : IComponent
src\Components\Shared\test\AutoRenderComponent.cs (1)
9public abstract class AutoRenderComponent : IComponent
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
Microsoft.AspNetCore.Components.WebView.Test (2)
WebViewManagerTests.cs (2)
118private class MyComponent : IComponent 142private class MyComponentUsingScopedAsyncDisposableService : IComponent
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
224 references to IComponent
Microsoft.AspNetCore.Components (68)
ComponentBase.cs (2)
20/// implement <see cref="IComponent"/> directly. 229void IComponent.Attach(RenderHandle renderHandle)
ComponentFactory.cs (8)
49public IComponent InstantiateComponent(IServiceProvider serviceProvider, [DynamicallyAccessedMembers(Component)] Type componentType, IComponentRenderMode? callerSpecifiedRenderMode, int? parentComponentId) 52IComponent component; 90private static void PerformPropertyInjection(IServiceProvider serviceProvider, IComponent instance) 100private static Action<IServiceProvider, IComponent> CreatePropertyInjector([DynamicallyAccessedMembers(Component)] Type type) 125void Initialize(IServiceProvider serviceProvider, IComponent component) 164public Action<IServiceProvider, IComponent> PerformPropertyInjection { get; } 168Action<IServiceProvider, IComponent> performPropertyInjection) 176out Action<IServiceProvider, IComponent> performPropertyInjection)
DefaultComponentActivator.cs (4)
17public IComponent CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type componentType) 19if (!typeof(IComponent).IsAssignableFrom(componentType)) 21throw new ArgumentException($"The type {componentType.FullName} does not implement {nameof(IComponent)}.", nameof(componentType)); 26return (IComponent)factory(serviceProvider, []);
DynamicComponent.cs (1)
28/// implement <see cref="IComponent"/>.
IComponentActivator.cs (1)
20IComponent CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type componentType);
LayoutAttribute.cs (3)
23if (!typeof(IComponent).IsAssignableFrom(layoutType)) 26$"does not implement {typeof(IComponent).FullName}."); 36/// The type of the layout. The type must implement <see cref="IComponent"/>
LayoutComponentBase.cs (1)
11/// Alternatively, components may implement <see cref="IComponent"/> directly
LayoutView.cs (1)
29/// The type must implement <see cref="IComponent"/> and accept a parameter named <see cref="LayoutComponentBase.Body"/>.
ParameterValue.cs (1)
7/// Represents a single parameter supplied to an <see cref="IComponent"/>
ParameterView.cs (1)
12/// Represents a collection of parameters supplied to an <see cref="IComponent"/>
PersistentState\ComponentStatePersistenceManager.cs (1)
157if (registration.Callback.Target is IComponent component)
Rendering\ComponentState.cs (5)
11/// Tracks the rendering state associated with an <see cref="IComponent"/> instance 32/// <param name="componentId">The externally visible identifier for the <see cref="IComponent"/>. The identifier must be unique in the context of the <see cref="Renderer"/>.</param> 33/// <param name="component">The <see cref="IComponent"/> whose state is being tracked.</param> 35public ComponentState(Renderer renderer, int componentId, IComponent component, ComponentState? parentComponentState) 82public IComponent Component { get; }
Rendering\RenderTreeBuilder.cs (4)
490public void OpenComponent<[DynamicallyAccessedMembers(Component)] TComponent>(int sequence) where TComponent : notnull, IComponent 500if (!typeof(IComponent).IsAssignableFrom(componentType)) 502throw new ArgumentException($"The component type must implement {typeof(IComponent).FullName}."); 776internal void AssertTreeIsValid(IComponent component)
RenderTree\Renderer.cs (18)
35private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>(); 158protected internal virtual IComponentRenderMode? GetComponentRenderMode(IComponent component) 165/// Resolves the component state for a given <see cref="IComponent"/> instance. 167/// <param name="component">The <see cref="IComponent"/> instance</param> 169protected internal ComponentState GetComponentState(IComponent component) 217protected IComponent InstantiateComponent([DynamicallyAccessedMembers(Component)] Type componentType) 221/// Associates the <see cref="IComponent"/> with the <see cref="Renderer"/>, assigning 227protected internal int AssignRootComponentId(IComponent component) 255/// <param name="componentId">The ID returned by <see cref="AssignRootComponentId(IComponent)"/>.</param> 274/// <param name="componentId">The ID returned by <see cref="AssignRootComponentId(IComponent)"/>.</param> 384private ComponentState AttachAndInitComponent(IComponent component, int parentComponentId) 394internal void RegisterComponentState(IComponent component, int componentId, ComponentState componentState) 409protected virtual ComponentState CreateComponentState(int componentId, IComponent component, ComponentState? parentComponentState) 488if (callback.Receiver is IComponent receiverComponent) // The receiver might be null or not an IComponent 600var newComponent = _componentFactory.InstantiateComponent(_serviceProvider, frame.ComponentTypeField, callerSpecifiedRenderMode, parentComponentId); 1326/// <returns>An <see cref="IComponent"/> instance.</returns> 1327protected internal virtual IComponent ResolveComponentForRenderMode(
RenderTree\RenderTreeDiffBuilder.cs (1)
1001var componentInstance = parentFrame.Component;
RenderTree\RenderTreeFrame.cs (2)
189public IComponent Component => ComponentStateField?.Component; 406=> new RenderTreeFrame(0, componentSubtreeLength: subtreeLength, typeof(IComponent), null, null);
RouteView.cs (1)
41/// declare any layout. If specified, the type must implement <see cref="IComponent"/>
Routing\RouteData.cs (3)
18/// <param name="pageType">The type of the page matching the route, which must implement <see cref="IComponent"/>.</param> 24if (!typeof(IComponent).IsAssignableFrom(pageType)) 26throw new ArgumentException($"The value must implement {nameof(IComponent)}.", nameof(pageType));
Routing\Router.cs (4)
146if (!typeof(IComponent).IsAssignableFrom(NotFoundPage)) 149$"does not implement {typeof(IComponent).FullName}."); 260if (!typeof(IComponent).IsAssignableFrom(context.Handler)) 263$"does not implement {typeof(IComponent).FullName}.");
Routing\RouteTableFactory.cs (1)
76if (typeof(IComponent).IsAssignableFrom(type)
Sections\SectionContent.cs (2)
38void IComponent.Attach(RenderHandle renderHandle) 43Task IComponent.SetParametersAsync(ParameterView parameters)
Sections\SectionOutlet.cs (3)
31internal IComponent? CurrentLogicalParent => _currentContentProvider; 33void IComponent.Attach(RenderHandle renderHandle) 39Task IComponent.SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
ComponentsTestDeclarations.cs (1)
20public interface {typeof(IComponent).Name}
Microsoft.AspNetCore.Components.Authorization.Tests (9)
src\Components\Shared\test\AssertFrame.cs (2)
79public static void Component<T>(RenderTreeFrame frame, int? subtreeLength = null, int? sequence = null) where T : IComponent 95public static void ComponentWithInstance<T>(RenderTreeFrame frame, int componentId, int? subtreeLength = null, int? sequence = null) where T : IComponent
src\Components\Shared\test\CapturedBatch.cs (2)
19public IEnumerable<RenderTreeFrame> GetComponentFrames<T>() where T : IComponent 22public IEnumerable<RenderTreeDiff> GetComponentDiffs<T>() where T : IComponent
src\Components\Shared\test\IComponentExtensions.cs (1)
9this IComponent component,
src\Components\Shared\test\TestRenderer.cs (4)
52public new int AssignRootComponentId(IComponent component) 97public IComponent InstantiateComponent<T>() 138protected override ComponentState CreateComponentState(int componentId, IComponent component, ComponentState parentComponentState) 155public TestRendererComponentState(Renderer renderer, int componentId, IComponent component, ComponentState parentComponentState)
Microsoft.AspNetCore.Components.CustomElements (1)
JSComponentConfigurationExtensions.cs (1)
19public static void RegisterCustomElement<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TComponent>(this IJSComponentConfiguration configuration, string identifier) where TComponent : IComponent
Microsoft.AspNetCore.Components.Endpoints (17)
Assets\ImportMap.cs (2)
37void IComponent.Attach(RenderHandle renderHandle) 42Task IComponent.SetParametersAsync(ParameterView parameters)
Assets\LinkPreload.cs (2)
20void IComponent.Attach(RenderHandle renderHandle) 25Task IComponent.SetParametersAsync(ParameterView parameters)
DependencyInjection\IComponentPrerenderer.cs (1)
20/// <param name="componentType">The type of component to prerender. This must implement <see cref="IComponent"/>.</param>
Discovery\IRazorComponentApplication.cs (1)
29if (candidate.IsAssignableTo(typeof(IComponent)))
Rendering\EndpointComponentState.cs (1)
19public EndpointComponentState(Renderer renderer, int componentId, IComponent component, ComponentState? parentComponentState)
Rendering\EndpointHtmlRenderer.cs (1)
159protected override ComponentState CreateComponentState(int componentId, IComponent component, ComponentState? parentComponentState)
Rendering\EndpointHtmlRenderer.Prerendering.cs (5)
21protected override IComponent ResolveComponentForRenderMode([DynamicallyAccessedMembers(Component)] Type componentType, int? parentComponentId, IComponentActivator componentActivator, IComponentRenderMode renderMode) 45protected override IComponentRenderMode? GetComponentRenderMode(IComponent component) 106if (!typeof(IComponent).IsAssignableFrom(componentType)) 108throw new ArgumentException(Resources.FormatTypeMustDeriveFromType(componentType, typeof(IComponent))); 121var rootComponent = prerenderMode is null
Results\RazorComponentResult.cs (3)
24/// <param name="componentType">The type of the component to render. This must implement <see cref="IComponent"/>.</param> 33/// <param name="componentType">The type of the component to render. This must implement <see cref="IComponent"/>.</param> 45/// <param name="componentType">The type of the component to render. This must implement <see cref="IComponent"/>.</param>
Results\RazorComponentResultOfT.cs (1)
14: RazorComponentResult where TComponent: IComponent
Microsoft.AspNetCore.Components.Endpoints.Tests (10)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (2)
317void IComponent.Attach(RenderHandle renderHandle) => throw new NotImplementedException(); 318Task IComponent.SetParametersAsync(ParameterView parameters) => throw new NotImplementedException();
ImportMapTest.cs (8)
166var component = importMap as IComponent; 222var component = importMap as IComponent; 285public new int AssignRootComponentId(IComponent component) 330public IComponent InstantiateComponent<T>() 347protected override ComponentState CreateComponentState(int componentId, IComponent component, ComponentState parentComponentState) 364public TestRendererComponentState(Renderer renderer, int componentId, IComponent component, ComponentState parentComponentState)
Microsoft.AspNetCore.Components.Forms.Tests (9)
src\Components\Shared\test\AssertFrame.cs (2)
79public static void Component<T>(RenderTreeFrame frame, int? subtreeLength = null, int? sequence = null) where T : IComponent 95public static void ComponentWithInstance<T>(RenderTreeFrame frame, int componentId, int? subtreeLength = null, int? sequence = null) where T : IComponent
src\Components\Shared\test\CapturedBatch.cs (2)
19public IEnumerable<RenderTreeFrame> GetComponentFrames<T>() where T : IComponent 22public IEnumerable<RenderTreeDiff> GetComponentDiffs<T>() where T : IComponent
src\Components\Shared\test\IComponentExtensions.cs (1)
9this IComponent component,
src\Components\Shared\test\TestRenderer.cs (4)
52public new int AssignRootComponentId(IComponent component) 97public IComponent InstantiateComponent<T>() 138protected override ComponentState CreateComponentState(int componentId, IComponent component, ComponentState parentComponentState) 155public TestRendererComponentState(Renderer renderer, int componentId, IComponent component, ComponentState parentComponentState)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
ComponentsTestDeclarations.cs (1)
20public interface {typeof(IComponent).Name}
Microsoft.AspNetCore.Components.Server (4)
Circuits\RemoteComponentState.cs (1)
18IComponent component,
Circuits\RemoteRenderer.cs (3)
68protected override IComponentRenderMode? GetComponentRenderMode(IComponent component) => RenderMode.InteractiveServer; 310protected override IComponent ResolveComponentForRenderMode([DynamicallyAccessedMembers(Component)] Type componentType, int? parentComponentId, IComponentActivator componentActivator, IComponentRenderMode renderMode) 317protected override ComponentState CreateComponentState(int componentId, IComponent component, ComponentState? parentComponentState)
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\CircuitHostTest.cs (1)
697where TComponent : IComponent
Circuits\RemoteRendererTest.cs (1)
711var component = InstantiateComponent(typeof(TComponent));
Microsoft.AspNetCore.Components.Tests (45)
CascadingParameterStateTest.cs (2)
403static ComponentState[] CreateAncestry(params IComponent[] components) 418IComponent component, ComponentState parentComponentState = null)
ComponentFactoryTest.cs (13)
22var instance = factory.InstantiateComponent(GetServiceProvider(), componentType, null, null); 39Assert.StartsWith($"The type {componentType.FullName} does not implement {nameof(IComponent)}.", ex.Message); 50var instance = factory.InstantiateComponent(GetServiceProvider(), componentType, null, null); 83var instance = factory.InstantiateComponent(GetServiceProvider(), componentType, null, null); 108var instance = factory.InstantiateComponent(serviceProvider, componentType, null, null); 129var instance = factory.InstantiateComponent(serviceProvider, componentType, null, null); 243var instance = factory.InstantiateComponent(serviceProvider, componentType, null, null); 362private class CustomComponentActivator<TResult> : IComponentActivator where TResult : IComponent, new() 364public IComponent CreateInstance(Type componentType) 372public IComponent CreateInstance(Type componentType) 411private readonly IComponent _componentToReturn; 413public RendererWithResolveComponentForRenderMode(IComponent componentToReturn) : base() 436protected internal override IComponent ResolveComponentForRenderMode(Type componentType, int? parentComponentId, IComponentActivator componentActivator, IComponentRenderMode renderMode)
DependencyInjectionTest.cs (1)
163private T InstantiateComponent<T>() where T : IComponent
RendererTest.cs (9)
2245var childComponent3 = batch.ReferenceFrames.Where(f => f.ComponentId == 3) 4499var suppliedComponent = renderer.InstantiateComponent<TestComponent>(); 4517var suppliedComponent = renderer.InstantiateComponent<TestComponent>(); 5142protected internal override IComponent ResolveComponentForRenderMode(Type componentType, int? parentComponentId, IComponentActivator componentActivator, IComponentRenderMode renderMode) 5154private class TestComponentActivator<TResult> : IComponentActivator where TResult : IComponent, new() 5158public IComponent CreateInstance(Type componentType) 5173public new int AssignRootComponentId(IComponent component) 5368private class ConditionalParentComponent<T> : AutoRenderComponent where T : IComponent 5512Task IComponent.SetParametersAsync(ParameterView parameters)
RenderTreeDiffBuilderTest.cs (9)
278var newComponent = GetComponents(newTree).Single(); 310var newComponent = GetComponents(newTree).Single(); 358var oldComponent = GetComponents(oldTree).Single(); 370var newComponent = GetComponents(newTree).Single(); 1631var originalFakeComponentInstance = oldTree.GetFrames().Array[2].Component; 1632var originalFakeComponent2Instance = oldTree.GetFrames().Array[3].Component; 2433private static IList<IComponent> GetComponents(RenderTreeBuilder builder) 2434=> GetComponents<IComponent>(builder); 2436private static IList<T> GetComponents<T>(RenderTreeBuilder builder) where T : IComponent
src\Components\Shared\test\AssertFrame.cs (2)
79public static void Component<T>(RenderTreeFrame frame, int? subtreeLength = null, int? sequence = null) where T : IComponent 95public static void ComponentWithInstance<T>(RenderTreeFrame frame, int componentId, int? subtreeLength = null, int? sequence = null) where T : IComponent
src\Components\Shared\test\CapturedBatch.cs (2)
19public IEnumerable<RenderTreeFrame> GetComponentFrames<T>() where T : IComponent 22public IEnumerable<RenderTreeDiff> GetComponentDiffs<T>() where T : IComponent
src\Components\Shared\test\IComponentExtensions.cs (1)
9this IComponent component,
src\Components\Shared\test\TestRenderer.cs (4)
52public new int AssignRootComponentId(IComponent component) 97public IComponent InstantiateComponent<T>() 138protected override ComponentState CreateComponentState(int componentId, IComponent component, ComponentState parentComponentState) 155public TestRendererComponentState(Renderer renderer, int componentId, IComponent component, ComponentState parentComponentState)
SupplyParameterFromPersistentComponentStateValueProviderTests.cs (2)
596List<(IComponent, object)> components, 619currentRenderTree.OpenComponent<IComponent>(0);
Microsoft.AspNetCore.Components.Web (20)
Forms\AntiforgeryToken.cs (2)
20void IComponent.Attach(RenderHandle renderHandle) 26Task IComponent.SetParametersAsync(ParameterView parameters)
Forms\Mapping\FormMappingScope.cs (2)
31void IComponent.Attach(RenderHandle renderHandle) 36Task IComponent.SetParametersAsync(ParameterView parameters)
HtmlRendering\HtmlRenderer.cs (8)
51public HtmlRootComponent BeginRenderingComponent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TComponent>() where TComponent : IComponent 64ParameterView parameters) where TComponent : IComponent 73/// <param name="componentType">The component type. This must implement <see cref="IComponent"/>.</param> 85/// <param name="componentType">The component type. This must implement <see cref="IComponent"/>.</param> 99public Task<HtmlRootComponent> RenderComponentAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TComponent>() where TComponent : IComponent 106/// <param name="componentType">The component type. This must implement <see cref="IComponent"/>.</param> 120ParameterView parameters) where TComponent : IComponent 127/// <param name="componentType">The component type. This must implement <see cref="IComponent"/>.</param>
HtmlRendering\StaticHtmlRenderer.cs (3)
48/// <param name="componentType">The component type. This must implement <see cref="IComponent"/>.</param> 55var component = InstantiateComponent(componentType); 66IComponent component,
JSComponents\JSComponentConfigurationExtensions.cs (2)
25public static void RegisterForJavaScript<[DynamicallyAccessedMembers(Component)] TComponent>(this IJSComponentConfiguration configuration, string identifier) where TComponent : IComponent 35public static void RegisterForJavaScript<[DynamicallyAccessedMembers(Component)] TComponent>(this IJSComponentConfiguration configuration, string identifier, string javaScriptInitializer) where TComponent : IComponent
Routing\NavigationLock.cs (2)
42void IComponent.Attach(RenderHandle renderHandle) 47Task IComponent.SetParametersAsync(ParameterView parameters)
WebRenderer.cs (1)
79var component = InstantiateComponent(componentType);
Microsoft.AspNetCore.Components.Web.Tests (10)
Forms\InputBaseTest.cs (1)
414var component = renderer.Batches.Single().GetComponentFrames<TestInputComponent<string>>().Single().Component;
src\Components\Shared\test\AssertFrame.cs (2)
79public static void Component<T>(RenderTreeFrame frame, int? subtreeLength = null, int? sequence = null) where T : IComponent 95public static void ComponentWithInstance<T>(RenderTreeFrame frame, int componentId, int? subtreeLength = null, int? sequence = null) where T : IComponent
src\Components\Shared\test\CapturedBatch.cs (2)
19public IEnumerable<RenderTreeFrame> GetComponentFrames<T>() where T : IComponent 22public IEnumerable<RenderTreeDiff> GetComponentDiffs<T>() where T : IComponent
src\Components\Shared\test\IComponentExtensions.cs (1)
9this IComponent component,
src\Components\Shared\test\TestRenderer.cs (4)
52public new int AssignRootComponentId(IComponent component) 97public IComponent InstantiateComponent<T>() 138protected override ComponentState CreateComponentState(int componentId, IComponent component, ComponentState parentComponentState) 155public TestRendererComponentState(Renderer renderer, int componentId, IComponent component, ComponentState parentComponentState)
Microsoft.AspNetCore.Components.WebAssembly (13)
Hosting\RootComponentMapping.cs (5)
10/// Defines a mapping between a root <see cref="IComponent"/> and a DOM element selector. 18/// <param name="componentType">The component type. Must implement <see cref="IComponent"/>.</param> 24if (!typeof(IComponent).IsAssignableFrom(componentType)) 27$"The type '{componentType.Name}' must implement {nameof(IComponent)} to be used as a root component.", 42/// <param name="componentType">The component type. Must implement <see cref="IComponent"/>.</param>
Hosting\RootComponentMappingCollection.cs (3)
24public void Add<[DynamicallyAccessedMembers(Component)] TComponent>(string selector) where TComponent : IComponent 34/// <param name="componentType">The component type. Must implement <see cref="IComponent"/>.</param> 44/// <param name="componentType">The component type. Must implement <see cref="IComponent"/>.</param>
Rendering\WebAssemblyComponentState.cs (1)
18IComponent component,
Rendering\WebAssemblyRenderer.cs (4)
20/// Provides mechanisms for rendering <see cref="IComponent"/> instances in a 80protected override IComponentRenderMode? GetComponentRenderMode(IComponent component) => RenderMode.InteractiveWebAssembly; 188protected override IComponent ResolveComponentForRenderMode([DynamicallyAccessedMembers(Component)] Type componentType, int? parentComponentId, IComponentActivator componentActivator, IComponentRenderMode renderMode) 195protected override ComponentState CreateComponentState(int componentId, IComponent component, ComponentState? parentComponentState)
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
86/// <param name="componentType">The type of the root component. This must implement <see cref="IComponent"/>.</param>
Microsoft.AspNetCore.Components.WebView.Maui (1)
RootComponent.cs (1)
24 /// Gets or sets the type of the root component. This type must implement <see cref="IComponent"/>.
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindowRootComponents.cs (1)
29public void Add<TComponent>(string selector, IDictionary<string, object?>? parameters = null) where TComponent : IComponent
Microsoft.AspNetCore.Components.WebView.WindowsForms (6)
BlazorWebView.cs (1)
99 /// A collection of <see cref="RootComponent"/> instances that specify the Blazor <see cref="IComponent"/> types
RootComponent.cs (2)
20 /// <param name="componentType">The type of the root component. This type must implement <see cref="IComponent"/>.</param> 41 /// Gets the type of the root component. This type must implement <see cref="IComponent"/>.
RootComponentCollectionExtensions.cs (3)
10 /// Provides a set of extension methods for modifying collections of <see cref="IComponent"/> objects. 19 /// <typeparam name="TComponent">The <see cref="IComponent"/> to add to the collection.</typeparam> 24 where TComponent : IComponent
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (1)
154 /// A collection of <see cref="RootComponent"/> instances that specify the Blazor <see cref="IComponent"/> types
RootComponent.cs (1)
23 /// Gets or sets the type of the root component. This type must implement <see cref="IComponent"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Rendering\HtmlHelperComponentExtensions.cs (2)
24public static Task<IHtmlContent> RenderComponentAsync<TComponent>(this IHtmlHelper htmlHelper, RenderMode renderMode) where TComponent : IComponent 38object parameters) where TComponent : IComponent
Wasm.Performance.ConsoleHost (1)
ConsoleHostRenderer.cs (1)
35public new int AssignRootComponentId(IComponent component)