Share via


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

要传递给 的BotComponent可选初始IServiceCollection值。 如果未提供,则使用空 ServiceCollection

返回

IEnumerable<TRegistration>

应用的BotComponent注册集合TRegistration

适用于