Interface IInteractionModuleBase
- Namespace
- HeyBox.Interactions
- Assembly
- HeyBox.Net.Interactions.dll
表示一个通用的交互模块基类。
public interface IInteractionModuleBase
Methods
AfterExecute(ICommandInfo)
在应用程序命令执行后同步执行的方法。
void AfterExecute(ICommandInfo command)
Parameters
command
ICommandInfo相关的命令信息。
AfterExecuteAsync(ICommandInfo)
在应用程序命令执行后异步执行的方法。
Task AfterExecuteAsync(ICommandInfo command)
Parameters
command
ICommandInfo相关的命令信息。
Returns
BeforeExecute(ICommandInfo)
在执行应用程序命令之前同步执行的方法。
void BeforeExecute(ICommandInfo command)
Parameters
command
ICommandInfo相关的命令信息。
BeforeExecuteAsync(ICommandInfo)
在执行应用程序命令之前异步执行的方法。
Task BeforeExecuteAsync(ICommandInfo command)
Parameters
command
ICommandInfo相关的命令信息。
Returns
Construct(ModuleBuilder, InteractionService)
当模块创建完成后创建模块信息前执行的方法。
void Construct(ModuleBuilder builder, InteractionService commandService)
Parameters
builder
ModuleBuilder构建此方法的模块构建器。
commandService
InteractionService构建此方法的命令服务实例。
OnModuleBuilding(InteractionService, ModuleInfo)
当构建模块时执行的方法。
void OnModuleBuilding(InteractionService commandService, ModuleInfo module)
Parameters
commandService
InteractionService构建此方法的命令服务实例。
module
ModuleInfo此模块的信息。
SetContext(IInteractionContext)
设置此交互模块的上下文。
void SetContext(IInteractionContext context)
Parameters
context
IInteractionContext交互上下文。