Table of Contents

IActionService 接口

命名空间
ClassIsland.Core.Abstractions.Services
程序集
ClassIsland.Core.dll

行动服务。

public interface IActionService

属性

Actions

已注册的行动。

public static ObservableDictionary<string, ActionRegistryInfo> Actions { get; }

属性值

ObservableDictionary<string, ActionRegistryInfo>

方法

ExistRevertHandler(Action)

行动是否有内建的恢复。

bool ExistRevertHandler(Action action)

参数

action Action

返回

bool

Invoke(ActionSet)

触发行动组。

void Invoke(ActionSet actionSet)

参数

actionSet ActionSet

RegisterActionHandler(string, HandleDelegate)

注册指定行动的处理方法。

void RegisterActionHandler(string id, ActionRegistryInfo.HandleDelegate handler)

参数

id string
handler ActionRegistryInfo.HandleDelegate

RegisterRevertHandler(string, HandleDelegate)

注册指定行动的恢复方法。

void RegisterRevertHandler(string id, ActionRegistryInfo.HandleDelegate handler)

参数

id string
handler ActionRegistryInfo.HandleDelegate

Revert(ActionSet)

恢复行动组。

void Revert(ActionSet actionSet)

参数

actionSet ActionSet