Class QueueMessage<T>
Represents a message in a queue with a specified body type.
Implements
Inherited Members
Namespace: Innovt.Cloud.Queue
Assembly: Innovt.Cloud.dll
Syntax
public class QueueMessage<T> : IQueueMessage
Type Parameters
Name | Description |
---|---|
T | The type of the message body. |
Constructors
| Edit this page View SourceQueueMessage()
Initializes a new instance of the QueueMessage<T> class.
Declaration
public QueueMessage()
QueueMessage(Dictionary<string, string>)
Initializes a new instance of the QueueMessage<T> class with specified attributes.
Declaration
public QueueMessage(Dictionary<string, string> attributes)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, string> | attributes | The attributes associated with the message. |
QueueMessage(T)
Initializes a new instance of the QueueMessage<T> class with a specified body.
Declaration
public QueueMessage(T body)
Parameters
Type | Name | Description |
---|---|---|
T | body | The body of the message. |
Properties
| Edit this page View SourceApproximateFirstReceiveTimestamp
Gets or sets the approximate timestamp when the message was first received.
Declaration
public double? ApproximateFirstReceiveTimestamp { get; set; }
Property Value
Type | Description |
---|---|
double? |
ApproximateReceiveCount
Gets or sets the approximate number of times the message has been received.
Declaration
public int? ApproximateReceiveCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
Attributes
Gets or sets the attributes associated with the message in the form of key-value pairs.
Declaration
public Dictionary<string, string> Attributes { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Body
Gets or sets the body of the message.
Declaration
public T Body { get; set; }
Property Value
Type | Description |
---|---|
T |
MessageId
Gets or sets the ID associated with the message.
Declaration
public string MessageId { get; set; }
Property Value
Type | Description |
---|---|
string |
ReceiptHandle
Gets or sets the receipt handle for the message.
Declaration
public string ReceiptHandle { get; set; }
Property Value
Type | Description |
---|---|
string |
TraceId
Gets or sets the trace ID associated with the message.
Declaration
public string TraceId { get; set; }
Property Value
Type | Description |
---|---|
string |