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
public interface IBehaviorTypeRegistryMethods
Section titled “Methods”Register(string, Type)
Section titled “ Register(string, Type)”Registers a mapping from behaviorId to behaviorType.
void Register(string behaviorId, Type behaviorType)Parameters
Section titled “Parameters”behaviorId string
The stable behavior identifier.
behaviorType Type
The concrete behavior implementation type.
TryGetType(string, out Type?)
Section titled “ TryGetType(string, out Type?)”Attempts to resolve the concrete behavior type for the given identifier.
bool TryGetType(string behaviorId, out Type? behaviorType)Parameters
Section titled “Parameters”behaviorId string
The stable behavior identifier to look up.
behaviorType Type?
When this method returns true, receives the concrete behavior type; otherwise null.