語言

ComponentRegistrationBridge<TComponent> 類別

定義

警告

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

橋接類別,允許 BotComponent 與 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

類型參數

TComponent

那種 BotComponent 用來銜接傳統 ComponentRegistration的類型。

繼承
ComponentRegistrationBridge<TComponent>
衍生
屬性
實作

建構函式

名稱 Description
ComponentRegistrationBridge<TComponent>()
已淘汰.

初始化 ComponentRegistrationBridge<TComponent> 類別的新執行個體。

ComponentRegistrationBridge<TComponent>(TComponent, IConfiguration)
已淘汰.

初始化 ComponentRegistrationBridge<TComponent> 類別的新執行個體。

屬性

名稱 Description
BotComponent
已淘汰.

可以 BotComponent 連接到傳承 ComponentRegistration系統。

方法

名稱 Description
GetFromComponent<TRegistration>(IServiceCollection)
已淘汰.

呼叫 啟動 以 BotComponent 取得一 TRegistration組類型的註冊。

GetMemoryScopes()
已淘汰.

取得記憶體範圍。

GetPathResolvers()
已淘汰.

傳回 pathresolvers 的列舉。

適用於