24 implementations of 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.Endpoints (6)
Assets\ImportMap.cs (1)
13public sealed class ImportMap : IComponent
Assets\ResourcePreloader.cs (1)
12public sealed class ResourcePreloader : IComponent
BrowserConfiguration\ConfigureBrowser.cs (1)
14public sealed class ConfigureBrowser : IComponent
RazorComponentEndpointHost.cs (1)
20internal class RazorComponentEndpointHost : IComponent
Rendering\SSRRenderModeBoundary.cs (1)
23internal class SSRRenderModeBoundary : IComponent
Routing\BasePath.cs (1)
11public sealed class BasePath : IComponent
Microsoft.AspNetCore.Components.Web (6)
Forms\AntiforgeryToken.cs (1)
12public class AntiforgeryToken : IComponent
Forms\DisplayName.cs (1)
16public class DisplayName<TValue> : IComponent
Forms\Label.cs (1)
30public class Label<TValue> : IComponent
Forms\Mapping\FormMappingScope.cs (1)
13public sealed class FormMappingScope : ICascadingValueSupplier, IComponent
Media\MediaComponentBase.cs (1)
15public abstract partial class MediaComponentBase : IComponent, IHandleAfterRender, IAsyncDisposable
Routing\NavigationLock.cs (1)
12public sealed class NavigationLock : IComponent, IHandleAfterRender, IAsyncDisposable
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
126 private sealed class StaticContentChangeNotifier : IComponent, IDisposable
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
132 references to IComponent
Microsoft.AspNetCore.Components (70)
ComponentBase.cs (2)
20/// implement <see cref="IComponent"/> directly. 229void IComponent.Attach(RenderHandle renderHandle)
ComponentFactory.cs (3)
57public IComponent InstantiateComponent(IServiceProvider serviceProvider, [DynamicallyAccessedMembers(Component)] Type componentType, IComponentRenderMode? callerSpecifiedRenderMode, int? parentComponentId) 60IComponent component; 92private void PerformPropertyInjection(IServiceProvider serviceProvider, IComponent instance)
DefaultComponentActivator.cs (4)
26public IComponent CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type componentType) 28if (!typeof(IComponent).IsAssignableFrom(componentType)) 30throw new ArgumentException($"The type {componentType.FullName} does not implement {nameof(IComponent)}.", nameof(componentType)); 35return (IComponent)factory(serviceProvider, []);
DefaultComponentPropertyActivator.cs (4)
19private static readonly ConcurrentDictionary<Type, Action<IServiceProvider, IComponent>> _cachedPropertyActivators = new(); 32public Action<IServiceProvider, IComponent> GetActivator( 47private static Action<IServiceProvider, IComponent> CreatePropertyActivator( 73void Initialize(IServiceProvider serviceProvider, IComponent component)
DynamicComponent.cs (1)
28/// implement <see cref="IComponent"/>.
IComponentActivator.cs (1)
20IComponent CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type componentType);
IComponentPropertyActivator.cs (2)
24/// A delegate that takes an <see cref="IServiceProvider"/> and an <see cref="IComponent"/> 27Action<IServiceProvider, IComponent> GetActivator(
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)
190if (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)
494public void OpenComponent<[DynamicallyAccessedMembers(Component)] TComponent>(int sequence) where TComponent : notnull, IComponent 504if (!typeof(IComponent).IsAssignableFrom(componentType)) 506throw new ArgumentException($"The component type must implement {typeof(IComponent).FullName}."); 809internal void AssertTreeIsValid(IComponent component)
RenderTree\Renderer.cs (18)
35private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>(); 171protected internal virtual IComponentRenderMode? GetComponentRenderMode(IComponent component) 178/// Resolves the component state for a given <see cref="IComponent"/> instance. 180/// <param name="component">The <see cref="IComponent"/> instance</param> 182protected internal ComponentState GetComponentState(IComponent component) 231protected IComponent InstantiateComponent([DynamicallyAccessedMembers(Component)] Type componentType) 235/// Associates the <see cref="IComponent"/> with the <see cref="Renderer"/>, assigning 241protected internal int AssignRootComponentId(IComponent component) 274/// <param name="componentId">The ID returned by <see cref="AssignRootComponentId(IComponent)"/>.</param> 293/// <param name="componentId">The ID returned by <see cref="AssignRootComponentId(IComponent)"/>.</param> 403private ComponentState AttachAndInitComponent(IComponent component, int parentComponentId) 413internal void RegisterComponentState(IComponent component, int componentId, ComponentState componentState) 428protected virtual ComponentState CreateComponentState(int componentId, IComponent component, ComponentState? parentComponentState) 507if (callback.Receiver is IComponent receiverComponent) // The receiver might be null or not an IComponent 619var newComponent = _componentFactory.InstantiateComponent(_serviceProvider, frame.ComponentTypeField, callerSpecifiedRenderMode, parentComponentId); 1345/// <returns>An <see cref="IComponent"/> instance.</returns> 1346protected internal virtual IComponent ResolveComponentForRenderMode(
RenderTree\RenderTreeDiffBuilder.cs (1)
1041var 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 (5)
146if (!typeof(IComponent).IsAssignableFrom(NotFoundPage)) 149$"does not implement {typeof(IComponent).FullName}."); 263if (!typeof(IComponent).IsAssignableFrom(context.Handler)) 266$"does not implement {typeof(IComponent).FullName}."); 435if (context.Handler is not null && typeof(IComponent).IsAssignableFrom(context.Handler))
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.Endpoints (21)
Assets\ImportMap.cs (2)
37void IComponent.Attach(RenderHandle renderHandle) 42Task IComponent.SetParametersAsync(ParameterView parameters)
Assets\ResourcePreloader.cs (2)
20void IComponent.Attach(RenderHandle renderHandle) 25Task IComponent.SetParametersAsync(ParameterView parameters)
BrowserConfiguration\ConfigureBrowser.cs (2)
30void IComponent.Attach(RenderHandle renderHandle) 35Task 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)
29public EndpointComponentState(Renderer renderer, int componentId, IComponent component, ComponentState? parentComponentState)
Rendering\EndpointHtmlRenderer.cs (1)
170protected 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
Routing\BasePath.cs (2)
18void IComponent.Attach(RenderHandle renderHandle) 23Task IComponent.SetParametersAsync(ParameterView parameters)
Microsoft.AspNetCore.Components.Server (4)
Circuits\RemoteComponentState.cs (1)
16IComponent 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.Web (26)
Forms\AntiforgeryToken.cs (2)
20void IComponent.Attach(RenderHandle renderHandle) 26Task IComponent.SetParametersAsync(ParameterView parameters)
Forms\DisplayName.cs (2)
29void IComponent.Attach(RenderHandle renderHandle) 35Task IComponent.SetParametersAsync(ParameterView parameters)
Forms\Label.cs (2)
58void IComponent.Attach(RenderHandle renderHandle) 64Task 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
Media\MediaComponentBase.cs (2)
97void IComponent.Attach(RenderHandle renderHandle) 106Task IComponent.SetParametersAsync(ParameterView parameters)
Routing\NavigationLock.cs (2)
42void IComponent.Attach(RenderHandle renderHandle) 47Task IComponent.SetParametersAsync(ParameterView parameters)
WebRenderer.cs (1)
76var component = InstantiateComponent(componentType);
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.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