ComponentRegistrationBridge<TComponent> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This class only exists for backward compatibility of legacy ComponentRegistrations
. Use BotComponent
for new components.
Bridge class to allow BotComponent to be backward compatible with 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
Type Parameters
- TComponent
The type of BotComponent to bridge into legacy ComponentRegistration.
- Inheritance
- Derived
- Attributes
- Implements
Constructors
ComponentRegistrationBridge<TComponent>() |
Initializes a new instance of the ComponentRegistrationBridge<TComponent> class. |
ComponentRegistrationBridge<TComponent>(TComponent, IConfiguration) |
Initializes a new instance of the ComponentRegistrationBridge<TComponent> class. |
Properties
BotComponent |
Gets BotComponent to be bridged to the legacy ComponentRegistration. |
Methods
GetFromComponent<TRegistration>(IServiceCollection) |
Calls startup on the BotComponent to retrieve a collection of registrations for type |
GetMemoryScopes() |
Gets the memory scopes. |
GetPathResolvers() |
Return enumeration of pathresolvers. |