Class TransientFaultEvidence
- Namespace
- Cuemon.Resilience
- Assembly
- Cuemon.Core.dll
Provides evidence about a faulted operation.
public class TransientFaultEvidence : IEquatable<TransientFaultEvidence>
- Inheritance
-
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
Int32The number of attempts the
descriptor
was invoked.recoveryWaitTime
TimeSpanThe last wait time attempting recovery of
descriptor
.totalRecoveryWaitTime
TimeSpanThe total wait time attempting recovery of
descriptor
.latency
TimeSpanThe latency experienced with
descriptor
.descriptor
MethodDescriptorThe 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
Int32The number of attempts the
descriptor
was invoked.recoveryWaitTime
TimeSpanThe last wait time attempting recovery of
descriptor
.totalRecoveryWaitTime
TimeSpanThe total wait time attempting recovery of
descriptor
.latency
TimeSpanThe latency experienced with
descriptor
.descriptor
MethodSignatureThe 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
TransientFaultEvidenceAn 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 Object is equal to this instance.
public override bool Equals(object obj)
Parameters
obj
ObjectThe object to compare with the current object.
Returns
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 String that represents this instance.
public override string ToString()