ComponentRegistryExtensions 类
- 程序集
- ClassIsland.Core.dll
用于在主界面注册组件的IServiceCollection扩展。
public static class ComponentRegistryExtensions
- 继承
-
ComponentRegistryExtensions
- 继承成员
方法
AddComponent<TComponent>(IServiceCollection)
注册主界面组件
public static IServiceCollection AddComponent<TComponent>(this IServiceCollection services) where TComponent : ComponentBase
参数
services
IServiceCollection
返回
类型参数
TComponent
组件类型
AddComponent<TComponent, TSettings>(IServiceCollection)
注册主界面组件
public static IServiceCollection AddComponent<TComponent, TSettings>(this IServiceCollection services) where TComponent : ComponentBase where TSettings : class
参数
services
IServiceCollection
返回
类型参数
TComponent
组件类型
TSettings
组件设置控件类型