Skip to content

Class BehaviorCatalog

Namespace: Cephalon.Behaviors.Services
Assembly: Cephalon.Behaviors.dll

Exposes the merged set of behavior topology descriptors contributed to the active runtime. Contributors are discovered via DI enumeration over .

public sealed class BehaviorCatalog : IBehaviorCatalog

objectBehaviorCatalog

IBehaviorCatalog

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

BehaviorCatalog(IEnumerable<IBehaviorContributor>)

Section titled “ BehaviorCatalog(IEnumerable<IBehaviorContributor>)”

Initializes a new by collecting contributions from all registered contributors.

public BehaviorCatalog(IEnumerable<IBehaviorContributor> contributors)

contributors IEnumerable<IBehaviorContributor>

The contributors that project behavior topology descriptors.

Gets all registered behavior topology descriptors.

public IReadOnlyList<BehaviorTopologyDescriptor> All { get; }

IReadOnlyList<BehaviorTopologyDescriptor>

Finds a behavior by identifier (case-insensitive), or returns null if not found.

public BehaviorTopologyDescriptor? FindById(string behaviorId)

behaviorId string

BehaviorTopologyDescriptor?

Gets all behaviors registered with the specified pattern.

public IReadOnlyList<BehaviorTopologyDescriptor> GetByPattern(string pattern)

pattern string

IReadOnlyList<BehaviorTopologyDescriptor>

Gets all behaviors registered with the specified transport.

public IReadOnlyList<BehaviorTopologyDescriptor> GetByTransport(string transportId)

transportId string

IReadOnlyList<BehaviorTopologyDescriptor>