Dela via


ComponentRegistrationBridge<TComponent> Klass

Definition

Varning

This class only exists for backward compatibility of legacy ComponentRegistrations. Use BotComponent for new components.

Bridge-klass för att tillåta BotComponent att vara bakåtkompatibel med ComponentRegistration.

[System.Obsolete("This class only exists for backward compatibility of legacy `ComponentRegistrations`. Use `BotComponent` for new components.")]
public class ComponentRegistrationBridge<TComponent> : Microsoft.Bot.Builder.ComponentRegistration, Microsoft.Bot.Builder.Dialogs.Memory.IComponentMemoryScopes, Microsoft.Bot.Builder.Dialogs.Memory.IComponentPathResolvers where TComponent : BotComponent, new()
[<System.Obsolete("This class only exists for backward compatibility of legacy `ComponentRegistrations`. Use `BotComponent` for new components.")>]
type ComponentRegistrationBridge<'Component (requires 'Component :> BotComponent and 'Component : (new : unit -> 'Component))> = class
    inherit ComponentRegistration
    interface IComponentMemoryScopes
    interface IComponentPathResolvers
Public Class ComponentRegistrationBridge(Of TComponent)
Inherits ComponentRegistration
Implements IComponentMemoryScopes, IComponentPathResolvers

Typparametrar

TComponent

Typen av BotComponent att brygga till äldre ComponentRegistration.

Arv
ComponentRegistrationBridge<TComponent>
Härledda
Attribut
Implementeringar

Konstruktorer

ComponentRegistrationBridge<TComponent>()
Föråldrad.

Initierar en ny instans av ComponentRegistrationBridge<TComponent> klassen.

ComponentRegistrationBridge<TComponent>(TComponent, IConfiguration)
Föråldrad.

Initierar en ny instans av ComponentRegistrationBridge<TComponent> klassen.

Egenskaper

BotComponent
Föråldrad.

Kommer BotComponent att bryggas till det äldre ComponentRegistration.

Metoder

GetFromComponent<TRegistration>(IServiceCollection)
Föråldrad.

Anropar start på BotComponent för att hämta en samling registreringar för typen TRegistration.

GetMemoryScopes()
Föråldrad.

Hämtar minnesomfattningarna.

GetPathResolvers()
Föråldrad.

Returnera uppräkning av pathresolvers.

Gäller för