Table of Contents

Struct MessageProperties

Namespace
CarrotMQ.Core
Assembly
CarrotMQ.Core.dll

Contains AMQP-properties

public struct MessageProperties : IEquatable<MessageProperties>
Implements
Inherited Members

Constructors

MessageProperties()

Initializes a new instance of the MessageProperties struct.

public MessageProperties()

Properties

Default

Default MessageProperties using PublisherConfirm

public static MessageProperties Default { get; }

Property Value

MessageProperties

Persistent

Gets or sets the flag whether the message will be persisted on disk (rabbitMq)

public bool Persistent { readonly get; set; }

Property Value

bool

Remarks

only relevant when using classic queues (on a quorum queue messages are always persistent)

Priority

Gets or sets the message priority, 0 to 9.

public byte Priority { readonly get; set; }

Property Value

byte

PublisherConfirm

Gets or sets the flag whether to use publisher confirm for this message

public bool PublisherConfirm { readonly get; set; }

Property Value

bool

Ttl

Gets or sets the Time To Live (TTL) in milliseconds of CarrotMQ messages.
Timeout while ...

  • publishing on the publisher side
  • waiting in the queue. AMQP expiration: Message expiration specification.
  • handling the request on the consumer side
public int? Ttl { readonly get; set; }

Property Value

int?

Methods

Equals(MessageProperties)

public readonly bool Equals(MessageProperties other)

Parameters

other MessageProperties

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

ToString()

public override readonly string ToString()

Returns

string

Operators

operator ==(MessageProperties, MessageProperties)

public static bool operator ==(MessageProperties left, MessageProperties right)

Parameters

left MessageProperties
right MessageProperties

Returns

bool

operator !=(MessageProperties, MessageProperties)

public static bool operator !=(MessageProperties left, MessageProperties right)

Parameters

left MessageProperties
right MessageProperties

Returns

bool