Jaa


ComponentRegistration Class

Definition

Caution

Use BotComponent for new components.

ComponentRegistration is a signature class for discovering assets from components.

[System.Obsolete("Use `BotComponent` for new components.")]
public class ComponentRegistration
[<System.Obsolete("Use `BotComponent` for new components.")>]
type ComponentRegistration = class
Public Class ComponentRegistration
Inheritance
ComponentRegistration
Derived
Attributes

Remarks

To make your components available to the system you derive from ComponentRegistration and implement appropriate interfaces which register functionality. These components then are consumed in appropriate places by the systems that need them. For example, to add declarative types to the system you simply add class that implements IComponentDeclarativeTypes.

public class MyComponentRegistration : IComponentDeclarativeTypes
{
    public IEnumerable<DeclarativeType>()
    {  
         yield return new DeclarativeType<MyType>("Contoso.MyType");
         ...
    }
}
startup.cs:
     ComponentRegistration.Add(new DeclarativeComponentRegistration()); 
     ComponentRegistration.Add(new MyComponentRegistration());

Constructors

ComponentRegistration()

Properties

Components
Obsolete.

Gets list of all ComponentRegistration objects registered.

Methods

Add(ComponentRegistration)
Obsolete.

Add a component which implements registration methods.

Applies to