Struct MessageProperties
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
Persistent
Gets or sets the flag whether the message will be persisted on disk (rabbitMq)
public bool Persistent { readonly get; set; }
Property Value
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
PublisherConfirm
Gets or sets the flag whether to use publisher confirm for this message
public bool PublisherConfirm { readonly get; set; }
Property Value
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
otherMessageProperties
Returns
Equals(object)
public override readonly bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
ToString()
public override readonly string ToString()
Returns
Operators
operator ==(MessageProperties, MessageProperties)
public static bool operator ==(MessageProperties left, MessageProperties right)
Parameters
leftMessagePropertiesrightMessageProperties
Returns
operator !=(MessageProperties, MessageProperties)
public static bool operator !=(MessageProperties left, MessageProperties right)
Parameters
leftMessagePropertiesrightMessageProperties