Jaa


ComponentRegistrationBridge<TComponent>.GetFromComponent<TRegistration> Method

Definition

Calls startup on the BotComponent to retrieve a collection of registrations for type 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)

Type Parameters

TRegistration

The type of registration to get from the BotComponent.

Parameters

services
IServiceCollection

Optional initial IServiceCollection to pass to the BotComponent. If not provided, an empty ServiceCollection is used.

Returns

IEnumerable<TRegistration>

The collection of TRegistration registrations applied by the BotComponent.

Applies to