Table of Contents

Class TransientFaultEvidence

Namespace
Cuemon.Resilience
Assembly
Cuemon.Core.dll

Provides evidence about a faulted operation.

public class TransientFaultEvidence : IEquatable<TransientFaultEvidence>
Inheritance
Object
TransientFaultEvidence
Implements

Constructors

TransientFaultEvidence(Int32, TimeSpan, TimeSpan, TimeSpan, MethodDescriptor)

Initializes a new instance of the TransientFaultEvidence class.

public TransientFaultEvidence(int attempts, TimeSpan recoveryWaitTime, TimeSpan totalRecoveryWaitTime, TimeSpan latency, MethodDescriptor descriptor)

Parameters

attempts Int32

The number of attempts the descriptor was invoked.

recoveryWaitTime TimeSpan

The last wait time attempting recovery of descriptor.

totalRecoveryWaitTime TimeSpan

The total wait time attempting recovery of descriptor.

latency TimeSpan

The latency experienced with descriptor.

descriptor MethodDescriptor

The information about the method being protected from a transient fault.

TransientFaultEvidence(Int32, TimeSpan, TimeSpan, TimeSpan, MethodSignature)

Initializes a new instance of the TransientFaultEvidence class.

public TransientFaultEvidence(int attempts, TimeSpan recoveryWaitTime, TimeSpan totalRecoveryWaitTime, TimeSpan latency, MethodSignature descriptor)

Parameters

attempts Int32

The number of attempts the descriptor was invoked.

recoveryWaitTime TimeSpan

The last wait time attempting recovery of descriptor.

totalRecoveryWaitTime TimeSpan

The total wait time attempting recovery of descriptor.

latency TimeSpan

The latency experienced with descriptor.

descriptor MethodSignature

The information about the method being protected from a transient fault.

Properties

Attempts

Gets the number of attempts the Descriptor was invoked.

public int Attempts { get; }

Property Value

Int32

The number of attempts the Descriptor was invoked.

Descriptor

Gets the information about the method being protected from a transient fault.

public MethodSignature Descriptor { get; }

Property Value

MethodSignature

The information about the method being protected from a transient fault.

Latency

Gets the latency experienced with Descriptor.

public TimeSpan Latency { get; }

Property Value

TimeSpan

The latency experienced with Descriptor.

RecoveryWaitTime

Gets the last wait time attempting recovery of Descriptor.

public TimeSpan RecoveryWaitTime { get; }

Property Value

TimeSpan

The last wait time attempting recovery of Descriptor.

TotalRecoveryWaitTime

Gets the total wait time attempting recovery of Descriptor.

public TimeSpan TotalRecoveryWaitTime { get; }

Property Value

TimeSpan

The total wait time attempting recovery of Descriptor.

Methods

Equals(TransientFaultEvidence)

Indicates whether the current object is equal to another object of the same type.

public virtual bool Equals(TransientFaultEvidence other)

Parameters

other TransientFaultEvidence

An object to compare with this object.

Returns

Boolean

true if the current object is equal to the other parameter; otherwise, false.

Equals(Object)

Determines whether the specified System.Object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj Object

The object to compare with the current object.

Returns

Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

String

A System.String that represents this instance.