ComponentRegistrationBridge<TComponent>.GetFromComponent<TRegistration> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
调用 启动 以 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