BotComponent class
BotComponent 的定义,允许注册服务、自定义操作、内存范围和适配器。 若要使组件可供系统使用,请派生自 BotComponent 并注册服务以添加功能。 然后,这些组件由需要它们的系统在适当的位置使用。 使用 Composer 时,只要在配置中注册了组件,configureServices 就会在机器人运行时自动调用组件。
属性
z |
方法
configure |
属性详细信息
z
方法详细信息
configureServices(ServiceCollection, Configuration)
function configureServices(services: ServiceCollection, configuration: Configuration)
参数
- services
-
ServiceCollection
- configuration
-
Configuration