Class ExecutionStrategyRegistry
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Patterns.Registry
Assembly: Cephalon.Behaviors.Patterns.dll
Provides O(1) lookup of
public sealed class ExecutionStrategyRegistryInheritance
Section titled “Inheritance”object ← ExecutionStrategyRegistry
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”ExecutionStrategyRegistry(IEnumerable<IBehaviorExecutionStrategy>)
Section titled “ ExecutionStrategyRegistry(IEnumerable<IBehaviorExecutionStrategy>)”Initializes the registry from the provided strategies. Duplicate pattern identifiers (case-insensitive) are not allowed.
public ExecutionStrategyRegistry(IEnumerable<IBehaviorExecutionStrategy> strategies)Parameters
Section titled “Parameters”strategies IEnumerable<IBehaviorExecutionStrategy>
The collection of strategies to register.
Exceptions
Section titled “Exceptions”Thrown when strategies is null.
Thrown when two strategies share the same pattern identifier.
Properties
Section titled “Properties”Gets all registered strategies.
public IReadOnlyList<IBehaviorExecutionStrategy> All { get; }Property Value
Section titled “Property Value”IReadOnlyList<IBehaviorExecutionStrategy>
Methods
Section titled “Methods”GetStrategy(string)
Section titled “ GetStrategy(string)”Retrieves the strategy for the given pattern identifier.
public IBehaviorExecutionStrategy? GetStrategy(string pattern)Parameters
Section titled “Parameters”pattern string
The pattern identifier to look up (case-insensitive).
Returns
Section titled “Returns”The matching strategy, or null if not found.