Class ErrorPolicyBase
Inheritance
ErrorPolicyBase
Assembly: Silverback.Integration.dll
Syntax
public abstract record ErrorPolicyBase : IErrorPolicy, IEquatable<ErrorPolicyBase>
Constructors
ErrorPolicyBase()
Declaration
protected ErrorPolicyBase()
ErrorPolicyBase(ErrorPolicyBase)
Declaration
protected ErrorPolicyBase(ErrorPolicyBase original)
Parameters
Properties
ApplyRule
Gets the custom apply rule function.
Declaration
public Func<IRawInboundEnvelope, Exception, bool>? ApplyRule { get; init; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
ExcludedExceptions
Gets the collection of exception types this policy doesn't have to be applied to.
Declaration
public IReadOnlyCollection<Type> ExcludedExceptions { get; init; }
Property Value
IncludedExceptions
Gets the collection of exception types this policy have to be applied to.
Declaration
public IReadOnlyCollection<Type> IncludedExceptions { get; init; }
Property Value
MaxFailedAttempts
Gets the number of times this policy should be applied to the same message in case of multiple failed attempts.
Declaration
public int? MaxFailedAttempts { get; }
Property Value
MessageToPublishFactory
Gets the factory that builds the message to be published after the policy is applied.
Declaration
public Func<IRawInboundEnvelope, Exception, object?>? MessageToPublishFactory { get; init; }
Property Value
Methods
Build(IServiceProvider)
Returns the actual error policy implementation, built using the provided
IServiceProvider.
Declaration
public IErrorPolicyImplementation Build(IServiceProvider serviceProvider)
Parameters
Returns
BuildCore(IServiceProvider)
Returns the actual error policy implementation, built using the provided
IServiceProvider.
Declaration
protected abstract ErrorPolicyImplementation BuildCore(IServiceProvider serviceProvider)
Parameters
Returns
Equals(ErrorPolicyBase?)
Declaration
public virtual bool Equals(ErrorPolicyBase? other)
Parameters
Returns
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(ErrorPolicyBase?, ErrorPolicyBase?)
Declaration
public static bool operator ==(ErrorPolicyBase? left, ErrorPolicyBase? right)
Parameters
Returns
operator !=(ErrorPolicyBase?, ErrorPolicyBase?)
Declaration
public static bool operator !=(ErrorPolicyBase? left, ErrorPolicyBase? right)
Parameters
Returns
Implements