86 implementations of IComponent
BasicTestApp (8)
Microsoft.AspNetCore.Components (9)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server.Tests (10)
Microsoft.AspNetCore.Components.Tests (33)
Microsoft.AspNetCore.Components.Web (3)
Microsoft.AspNetCore.Components.Web.Tests (5)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.Test (2)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
215 references to IComponent
Microsoft.AspNetCore.Components (66)
RenderTree\Renderer.cs (18)
31private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>();
148protected internal virtual IComponentRenderMode? GetComponentRenderMode(IComponent component)
155/// Resolves the component state for a given <see cref="IComponent"/> instance.
157/// <param name="component">The <see cref="IComponent"/> instance</param>
159protected internal ComponentState GetComponentState(IComponent component)
207protected IComponent InstantiateComponent([DynamicallyAccessedMembers(Component)] Type componentType)
211/// Associates the <see cref="IComponent"/> with the <see cref="Renderer"/>, assigning
217protected internal int AssignRootComponentId(IComponent component)
245/// <param name="componentId">The ID returned by <see cref="AssignRootComponentId(IComponent)"/>.</param>
264/// <param name="componentId">The ID returned by <see cref="AssignRootComponentId(IComponent)"/>.</param>
374private ComponentState AttachAndInitComponent(IComponent component, int parentComponentId)
384internal void RegisterComponentState(IComponent component, int componentId, ComponentState componentState)
399protected virtual ComponentState CreateComponentState(int componentId, IComponent component, ComponentState? parentComponentState)
465if (callback.Receiver is IComponent receiverComponent) // The receiver might be null or not an IComponent
551var newComponent = _componentFactory.InstantiateComponent(_serviceProvider, frame.ComponentTypeField, callerSpecifiedRenderMode, parentComponentId);
1268/// <returns>An <see cref="IComponent"/> instance.</returns>
1269protected internal virtual IComponent ResolveComponentForRenderMode(
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.Authorization.Tests (9)
Microsoft.AspNetCore.Components.CustomElements (1)
Microsoft.AspNetCore.Components.Endpoints (15)
Microsoft.AspNetCore.Components.Endpoints.Tests (11)
Microsoft.AspNetCore.Components.Forms.Tests (9)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Server.Tests (2)
Microsoft.AspNetCore.Components.Tests (43)
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)
Microsoft.AspNetCore.Components.Web (20)
Microsoft.AspNetCore.Components.Web.Tests (10)
Microsoft.AspNetCore.Components.WebAssembly (11)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.Photino (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (6)
Microsoft.AspNetCore.Components.WebView.Wpf (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Wasm.Performance.ConsoleHost (1)