ข้ามไปยังเนื้อหา

Class BehaviorAllowlistValidator

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Behaviors.Validation
Assembly: Cephalon.Behaviors.dll

Validates that a behavior’s resolved interaction pattern is permitted by its , when one is present. When the attribute is absent, no restriction is applied.

public sealed class BehaviorAllowlistValidator

objectBehaviorAllowlistValidator

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

Validate(BehaviorTopologyDescriptor, Type?)

Section titled “ Validate(BehaviorTopologyDescriptor, Type?)”

Validates the resolved topology against the allowlist declared on the behavior type.

public static void Validate(BehaviorTopologyDescriptor descriptor, Type? behaviorType)

descriptor BehaviorTopologyDescriptor

The resolved behavior topology descriptor.

behaviorType Type?

The concrete behavior type to inspect for and . When null, no attribute check is performed.

BehaviorSecurityException

Thrown when the resolved pattern or a transport is not in the declared allowlist.