Share via


ComponentRegistrationBridge<TComponent> 类

定义

注意

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

用于允许 BotComponentComponentRegistration后兼容的 Bridge 类。

[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

要桥接到旧版 ComponentRegistration的 类型BotComponent

继承
ComponentRegistrationBridge<TComponent>
派生
属性
实现

构造函数

ComponentRegistrationBridge<TComponent>()
已过时.

初始化 ComponentRegistrationBridge<TComponent> 类的新实例。

ComponentRegistrationBridge<TComponent>(TComponent, IConfiguration)
已过时.

初始化 ComponentRegistrationBridge<TComponent> 类的新实例。

属性

BotComponent
已过时.

获取 BotComponent 要桥接到旧版 ComponentRegistration的 。

方法

GetFromComponent<TRegistration>(IServiceCollection)
已过时.

调用 上的 BotComponent 启动以检索类型 TRegistration的注册集合。

GetMemoryScopes()
已过时.

获取内存范围。

GetPathResolvers()
已过时.

返回 pathresolvers 的枚举。

适用于