Table of Contents

Class ProviderOptionsValidator

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.Transport.Abstractions.dll

Validates ProviderOptions at startup via the ValidateOnStart pipeline.

public class ProviderOptionsValidator : IValidateOptions<ProviderOptions>
Inheritance
ProviderOptionsValidator
Implements
Inherited Members
Extension Methods

Remarks

Performs cross-property constraint checks including:

  • RetryPolicy.BaseDelayMs must be less than or equal to RetryPolicy.MaxDelayMs
  • DefaultTimeoutMs must be positive

Methods

Validate(string?, ProviderOptions)

Validates a specified named options instance (or all if name is null).

public ValidateOptionsResult Validate(string? name, ProviderOptions options)

Parameters

name string

The name of the options instance being validated.

options ProviderOptions

The options instance.

Returns

ValidateOptionsResult

The ValidateOptionsResult result.