语言

ComponentRegistrationBridge<TComponent>.GetFromComponent<TRegistration> 方法

定义

调用 启动 以 BotComponent 获取类型 TRegistration的注册集合。

protected System.Collections.Generic.IEnumerable<TRegistration> GetFromComponent<TRegistration>(Microsoft.Extensions.DependencyInjection.IServiceCollection services = default);
member this.GetFromComponent : Microsoft.Extensions.DependencyInjection.IServiceCollection -> seq<'Registration>
Protected Function GetFromComponent(Of TRegistration) (Optional services As IServiceCollection = Nothing) As IEnumerable(Of TRegistration)

类型参数

TRegistration

注册类型应从 BotComponent中获得。

参数

services
IServiceCollection

可选首字母 IServiceCollection 传递给 BotComponent。 如果没有提供,则使用空。ServiceCollection

返回

IEnumerable<TRegistration>

TRegistration由 .BotComponent

适用于