Class ReadOnlyBasicProperties
AMQP specification content header properties for content class "basic"
public sealed class ReadOnlyBasicProperties : IReadOnlyBasicProperties
- Inheritance
-
ReadOnlyBasicProperties
- Implements
- Inherited Members
Constructors
ReadOnlyBasicProperties(ReadOnlySpan<byte>)
public ReadOnlyBasicProperties(ReadOnlySpan<byte> span)
Parameters
span
ReadOnlySpan<byte>
Properties
AppId
Application Id.
public string? AppId { get; }
Property Value
ClusterId
Intra-cluster routing identifier (cluster id is deprecated in AMQP 0-9-1).
public string? ClusterId { get; }
Property Value
ContentEncoding
MIME content encoding.
public string? ContentEncoding { get; }
Property Value
ContentType
MIME content type.
public string? ContentType { get; }
Property Value
CorrelationId
Application correlation identifier.
public string? CorrelationId { get; }
Property Value
DeliveryMode
Non-persistent (1) or persistent (2).
public DeliveryModes DeliveryMode { get; }
Property Value
Expiration
Message expiration specification.
public string? Expiration { get; }
Property Value
Headers
Message header field table. Is of type IDictionary<TKey, TValue>.
public IDictionary<string, object?>? Headers { get; }
Property Value
MessageId
Application message Id.
public string? MessageId { get; }
Property Value
Persistent
Sets DeliveryMode to either persistent (2) or non-persistent (1).
public bool Persistent { get; }
Property Value
Priority
Message priority, 0 to 9.
public byte Priority { get; }
Property Value
ReplyTo
Destination to reply to.
public string? ReplyTo { get; }
Property Value
ReplyToAddress
Convenience property; parses ReplyTo property using TryParse(string?, out PublicationAddress?), and serializes it using ToString(). Returns null if ReplyTo property cannot be parsed by TryParse(string?, out PublicationAddress?).
public PublicationAddress? ReplyToAddress { get; }
Property Value
Timestamp
Message timestamp.
public AmqpTimestamp Timestamp { get; }
Property Value
Type
Message type name.
public string? Type { get; }
Property Value
UserId
User Id.
public string? UserId { get; }
Property Value
Methods
IsAppIdPresent()
Returns true if the AppId property is present.
public bool IsAppIdPresent()
Returns
IsClusterIdPresent()
Returns true if the ClusterId property is present (cluster id is deprecated in AMQP 0-9-1).
public bool IsClusterIdPresent()
Returns
IsContentEncodingPresent()
Returns true if the ContentEncoding property is present.
public bool IsContentEncodingPresent()
Returns
IsContentTypePresent()
Returns true if the ContentType property is present.
public bool IsContentTypePresent()
Returns
IsCorrelationIdPresent()
Returns true if the CorrelationId property is present.
public bool IsCorrelationIdPresent()
Returns
IsDeliveryModePresent()
Returns true if the DeliveryMode property is present.
public bool IsDeliveryModePresent()
Returns
IsExpirationPresent()
Returns true if the Expiration property is present.
public bool IsExpirationPresent()
Returns
IsHeadersPresent()
Returns true if the Headers property is present.
public bool IsHeadersPresent()
Returns
IsMessageIdPresent()
Returns true if the MessageId property is present.
public bool IsMessageIdPresent()
Returns
IsPriorityPresent()
Returns true if the Priority property is present.
public bool IsPriorityPresent()
Returns
IsReplyToPresent()
Returns true if the ReplyTo property is present.
public bool IsReplyToPresent()
Returns
IsTimestampPresent()
Returns true if the Timestamp property is present.
public bool IsTimestampPresent()
Returns
IsTypePresent()
Returns true if the Type property is present.
public bool IsTypePresent()
Returns
IsUserIdPresent()
Returns true if the UserId property is present.
public bool IsUserIdPresent()