Skip to content

Interface IBehaviorTypeRegistry

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

Maps behavior identifiers to their concrete implementation types. This registry is populated during DI setup and consumed by at construction time to build its dispatch table.

public interface IBehaviorTypeRegistry

Registers a mapping from behaviorId to behaviorType.

void Register(string behaviorId, Type behaviorType)

behaviorId string

The stable behavior identifier.

behaviorType Type

The concrete behavior implementation type.

Attempts to resolve the concrete behavior type for the given identifier.

bool TryGetType(string behaviorId, out Type? behaviorType)

behaviorId string

The stable behavior identifier to look up.

behaviorType Type?

When this method returns true, receives the concrete behavior type; otherwise null.

bool

true when the identifier is registered; otherwise false.