Språk

ComponentRegistrationBridge<TComponent>.GetFromComponent<TRegistration> Metod

Definition

Anropar start på för BotComponent att hämta en samling registreringar för typen 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)

Typparametrar

TRegistration

Typen av registrering att få från BotComponent.

Parametrar

services
IServiceCollection

Valfri initial IServiceCollection för att gå vidare till .BotComponent Om det inte finns används en tom.ServiceCollection

Returer

IEnumerable<TRegistration>

Samlingen av TRegistration registreringar som ansöks av BotComponent.

Gäller för