IActionService 接口
- 程序集
- ClassIsland.Core.dll
行动服务。
public interface IActionService
属性
Actions
已注册的行动。
public static ObservableDictionary<string, ActionRegistryInfo> Actions { get; }
属性值
方法
ExistRevertHandler(Action)
行动是否有内建的恢复。
bool ExistRevertHandler(Action action)
参数
action
Action
返回
Invoke(ActionSet)
触发行动组。
void Invoke(ActionSet actionSet)
参数
actionSet
ActionSet
RegisterActionHandler(string, HandleDelegate)
注册指定行动的处理方法。
void RegisterActionHandler(string id, ActionRegistryInfo.HandleDelegate handler)
参数
id
stringhandler
ActionRegistryInfo.HandleDelegate
RegisterRevertHandler(string, HandleDelegate)
注册指定行动的恢复方法。
void RegisterRevertHandler(string id, ActionRegistryInfo.HandleDelegate handler)
参数
id
stringhandler
ActionRegistryInfo.HandleDelegate
Revert(ActionSet)
恢复行动组。
void Revert(ActionSet actionSet)
参数
actionSet
ActionSet