ActionRegistryExtensions 类
- 程序集
- ClassIsland.Core.dll
注册行动的IServiceCollection扩展。
public static class ActionRegistryExtensions
- 继承
-
ActionRegistryExtensions
- 继承成员
方法
AddAction(IServiceCollection, string, string, string, HandleDelegate?)
注册无设置行动。
public static IServiceCollection AddAction(this IServiceCollection services, string id, string name = "", string iconGlyph = "", ActionRegistryInfo.HandleDelegate? onHandle = null)
参数
servicesIServiceCollectionidstring行动ID,例如“classisland.example”。
namestring行动名称。/
iconGlyphstring行动图标。
onHandleActionRegistryInfo.HandleDelegate行动处理程序。
返回
AddAction<TSettings, TSettingsControl>(IServiceCollection, string, string, string, HandleDelegate?)
注册行动。
public static IServiceCollection AddAction<TSettings, TSettingsControl>(this IServiceCollection services, string id, string name = "", string iconGlyph = "", ActionRegistryInfo.HandleDelegate? onHandle = null) where TSettingsControl : ActionSettingsControlBase
参数
servicesIServiceCollectionidstring行动ID,例如“classisland.example”。
namestring行动名称。/
iconGlyphstring行动图标。
onHandleActionRegistryInfo.HandleDelegate行动处理程序。
返回
类型参数
TSettings行动设置类型。
TSettingsControl行动设置控件类型。