共用方式為


ComponentRegistrationBridge<TComponent> 類別

定義

警告

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

Bridge 類別,允許 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

要橋接至舊版 ComponentRegistrationBotComponent 型別。

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

建構函式

ComponentRegistrationBridge<TComponent>()
已淘汰.

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

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

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

屬性

BotComponent
已淘汰.

取得 BotComponent 要橋接至舊版 ComponentRegistration 的 。

方法

GetFromComponent<TRegistration>(IServiceCollection)
已淘汰.

在 上 BotComponent 呼叫 啟動,以擷取 型 TRegistration 別 的註冊集合。

GetMemoryScopes()
已淘汰.

取得記憶體範圍。

GetPathResolvers()
已淘汰.

傳回 pathresolvers 的列舉。

適用於