Table of Contents

Class RabbitMqConsumptionOptions

Namespace
Excalibur.Dispatch.Transport.RabbitMQ
Assembly
Excalibur.Dispatch.Transport.RabbitMQ.dll

Consumption behavior options for RabbitMQ.

public sealed class RabbitMqConsumptionOptions
Inheritance
RabbitMqConsumptionOptions
Inherited Members
Extension Methods

Properties

MaxPayloadBytes

Gets or sets the maximum inbound-payload length, in bytes, enforced at receive ingress before the body is materialized (defense-in-depth DoS hardening; the RabbitMQ analogue of Kestrel's MaxRequestBodySize). An over-limit message is rejected before deserialization.

[Range(1, 2147483647)]
public int? MaxPayloadBytes { get; set; }

Property Value

int?

The maximum payload length in bytes. Default is 4 MiB (bounded by default so the guard is never inert). Set to null to opt out (unbounded) for larger legitimate payloads.