Class RetryErrorPolicy
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Inheritance
RetryErrorPolicy
Assembly: Silverback.Integration.dll
Syntax
public record RetryErrorPolicy : ErrorPolicyBase, IErrorPolicy, IEquatable<ErrorPolicyBase>, IEquatable<RetryErrorPolicy>
Constructors
RetryErrorPolicy(RetryErrorPolicy)
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
protected RetryErrorPolicy(RetryErrorPolicy original)
Parameters
Properties
DelayFactor
Gets the factor to be applied to the delay to be applied at each retry.
Declaration
public double DelayFactor { get; init; }
Property Value
DelayIncrement
Gets the increment to the delay to be applied at each retry.
Declaration
public TimeSpan DelayIncrement { get; init; }
Property Value
EqualityContract
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
protected override Type EqualityContract { get; }
Property Value
Overrides
InitialDelay
Gets the delay to be applied to the first retry.
Declaration
public TimeSpan InitialDelay { get; init; }
Property Value
MaxDelay
Gets the maximum delay to be applied.
Declaration
public TimeSpan? MaxDelay { get; init; }
Property Value
Methods
BuildCore(IServiceProvider)
Returns the actual error policy implementation, built using the provided
IServiceProvider.
Declaration
protected override ErrorPolicyImplementation BuildCore(IServiceProvider serviceProvider)
Parameters
Returns
Overrides
Equals(ErrorPolicyBase?)
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
public override sealed bool Equals(ErrorPolicyBase? other)
Parameters
Returns
Overrides
Equals(RetryErrorPolicy?)
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
public virtual bool Equals(RetryErrorPolicy? other)
Parameters
Returns
Equals(object?)
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
protected override bool PrintMembers(StringBuilder builder)
Parameters
Returns
Overrides
ToString()
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(RetryErrorPolicy?, RetryErrorPolicy?)
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
public static bool operator ==(RetryErrorPolicy? left, RetryErrorPolicy? right)
Parameters
Returns
operator !=(RetryErrorPolicy?, RetryErrorPolicy?)
This policy retries to process the message that previously failed to be to processed. An optional
delay can be specified.
Declaration
public static bool operator !=(RetryErrorPolicy? left, RetryErrorPolicy? right)
Parameters
Returns
Implements