Skip to content

Class BehaviorResilienceExceptionContext

Namespace: Cephalon.Abstractions.Resilience
Assembly: Cephalon.Abstractions.dll

Describes one behavior-execution exception being evaluated by the resilience pipeline.

public sealed class BehaviorResilienceExceptionContext

objectBehaviorResilienceExceptionContext

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

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 class.

public BehaviorResilienceExceptionContext(string policyId, string behaviorId, string? transportId, IReadOnlyList<string>? targetedBehaviorIds, IReadOnlyList<string>? targetedTransportIds, Exception exception, BehaviorIdempotencyMode behaviorIdempotency = BehaviorIdempotencyMode.Unknown)

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.

Gets the stable behavior identifier being executed.

public string BehaviorId { get; }

string

Gets the declared behavior idempotency mode when one is known.

public BehaviorIdempotencyMode BehaviorIdempotency { get; }

BehaviorIdempotencyMode

Gets the exception being classified.

public Exception Exception { get; }

Exception

Gets the stable resilience-policy identifier handling the exception.

public string PolicyId { get; }

string

Gets the behavior identifiers targeted by the active policy.

public IReadOnlyList<string> TargetedBehaviorIds { get; }

IReadOnlyList<string>

Gets the transport identifiers targeted by the active policy.

public IReadOnlyList<string> TargetedTransportIds { get; }

IReadOnlyList<string>

Gets the active transport identifier when one is known.

public string? TransportId { get; }

string?