ComponentRegistrationBridge<TComponent>.GetFromComponent<TRegistration> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.