Table of Contents

Class RetryLaterPolicy

Namespace
Integrations.Infrastructure.Messaging.Redelivery
Assembly
Integrations.Infrastructure.dll

Which consumer failures are worth trying again later rather than sending the message to _error now. Everything here can resolve itself without anyone fixing the message: the original document arrives or is committed, a concurrent writer finishes, the tax provider comes back.

public static class RetryLaterPolicy
Inheritance
RetryLaterPolicy
Inherited Members

Fields

TransientConflictCodes

Error codes of ConflictExceptions that resolve on their own.

public static readonly IReadOnlySet<string> TransientConflictCodes

Field Value

IReadOnlySet<string>

Methods

IsRetryLater(Exception)

Whether exception should be redelivered later.

public static bool IsRetryLater(Exception exception)

Parameters

exception Exception

The consumer's failure (after immediate retries).

Returns

bool

True to defer the message.