Språk

ComponentRegistrationBridge<TComponent> Klass

Definition

Varning

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

Bryggklass för att möjliggöra BotComponent bakåtkompatibilitet 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

Den typen av BotComponent att brygga in i arvet ComponentRegistration.

Arv
ComponentRegistrationBridge<TComponent>
Härledda
Attribut
Implementeringar

Konstruktorer

Name Description
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

Name Description
BotComponent
Föråldrad.

Får BotComponent vara kopplad till arvet ComponentRegistration.

Metoder

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

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

GetMemoryScopes()
Föråldrad.

Får minnesscopes.

GetPathResolvers()
Föråldrad.

Returnera uppräkningen av pathresolvers.

Gäller för