Skip to main content
Table of Contents

Class MessageRetryOptionsValidation

Namespace
Stratara.Abstractions.Messaging
Assembly
Stratara.Abstractions.dll

The validation both transport registrations apply to MessageRetryOptions at start-up: each bound is at least one, because a bound of zero would dead-letter a message before its handler ever ran.

public static class MessageRetryOptionsValidation
Inheritance
MessageRetryOptionsValidation
Inherited Members

Fields

Message

The failure message reported when a bound is below one.

public const string Message = "MessageRetry: MaxDeliveryAttempts and MaxConflictRequeues must each be at least 1."

Field Value

string

Methods

IsValid(MessageRetryOptions)

Returns whether both bounds are at least one.

public static bool IsValid(MessageRetryOptions options)

Parameters

options MessageRetryOptions

The options to validate.

Returns

bool

true when both bounds are at least one.