Class BehaviorResilienceExceptionContext
Namespace: Cephalon.Abstractions.Resilience
Assembly: Cephalon.Abstractions.dll
Describes one behavior-execution exception being evaluated by the resilience pipeline.
public sealed class BehaviorResilienceExceptionContextInheritance
Section titled “Inheritance”object ← BehaviorResilienceExceptionContext
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”BehaviorResilienceExceptionContext(string, string, string?, IReadOnlyList<string>?, IReadOnlyList<string>?, Exception, BehaviorIdempotencyMode)
Section titled “ BehaviorResilienceExceptionContext(string, string, string?, IReadOnlyList<string>?, IReadOnlyList<string>?, Exception, BehaviorIdempotencyMode)”Initializes a new instance of the
public BehaviorResilienceExceptionContext(string policyId, string behaviorId, string? transportId, IReadOnlyList<string>? targetedBehaviorIds, IReadOnlyList<string>? targetedTransportIds, Exception exception, BehaviorIdempotencyMode behaviorIdempotency = BehaviorIdempotencyMode.Unknown)Parameters
Section titled “Parameters”policyId string
The stable resilience-policy identifier handling the exception.
behaviorId string
The stable behavior identifier being executed.
transportId string?
The active transport identifier when one is known.
targetedBehaviorIds IReadOnlyList<string>?
The behavior identifiers targeted by the active policy.
targetedTransportIds IReadOnlyList<string>?
The transport identifiers targeted by the active policy.
exception Exception
The exception being classified.
behaviorIdempotency BehaviorIdempotencyMode
The declared behavior idempotency mode when one is known.
Properties
Section titled “Properties”BehaviorId
Section titled “ BehaviorId”Gets the stable behavior identifier being executed.
public string BehaviorId { get; }Property Value
Section titled “Property Value”BehaviorIdempotency
Section titled “ BehaviorIdempotency”Gets the declared behavior idempotency mode when one is known.
public BehaviorIdempotencyMode BehaviorIdempotency { get; }Property Value
Section titled “Property Value”Exception
Section titled “ Exception”Gets the exception being classified.
public Exception Exception { get; }Property Value
Section titled “Property Value”PolicyId
Section titled “ PolicyId”Gets the stable resilience-policy identifier handling the exception.
public string PolicyId { get; }Property Value
Section titled “Property Value”TargetedBehaviorIds
Section titled “ TargetedBehaviorIds”Gets the behavior identifiers targeted by the active policy.
public IReadOnlyList<string> TargetedBehaviorIds { get; }Property Value
Section titled “Property Value”TargetedTransportIds
Section titled “ TargetedTransportIds”Gets the transport identifiers targeted by the active policy.
public IReadOnlyList<string> TargetedTransportIds { get; }Property Value
Section titled “Property Value”TransportId
Section titled “ TransportId”Gets the active transport identifier when one is known.
public string? TransportId { get; }