Udostępnij za pośrednictwem


ComponentRegistrationBridge<TComponent> Klasa

Definicja

Przestroga

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

Klasa mostka umożliwiająca BotComponent zgodność z poprzednimi wersjami za pomocą polecenia 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

Parametry typu

TComponent

Typ mostka do starszej BotComponent wersji ComponentRegistration.

Dziedziczenie
ComponentRegistrationBridge<TComponent>
Pochodne
Atrybuty
Implementuje

Konstruktory

ComponentRegistrationBridge<TComponent>()
Przestarzałe.

Inicjuje nowe wystąpienie klasy ComponentRegistrationBridge<TComponent>.

ComponentRegistrationBridge<TComponent>(TComponent, IConfiguration)
Przestarzałe.

Inicjuje nowe wystąpienie klasy ComponentRegistrationBridge<TComponent>.

Właściwości

BotComponent
Przestarzałe.

Dostaje BotComponent się mostek do starszej wersji ComponentRegistration.

Metody

GetFromComponent<TRegistration>(IServiceCollection)
Przestarzałe.

Wywołuje uruchamianie elementu , BotComponent aby pobrać kolekcję rejestracji dla typu TRegistration.

GetMemoryScopes()
Przestarzałe.

Pobiera zakresy pamięci.

GetPathResolvers()
Przestarzałe.

Zwracanie wyliczenia pathresolvers.

Dotyczy