17.80. Class QueueMessageHandler
Namespace: ArmoniK.Core.Adapters.RabbitMQ
Assembly: ArmoniK.Core.Adapters.RabbitMQ.dll
public class QueueMessageHandler : IQueueMessageHandler, IAsyncDisposable
17.80.1. Inheritance
17.80.2. Implements
17.80.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
17.80.4. Constructors
17.80.4.1. QueueMessageHandler(IConnectionRabbit, BasicGetResult, string, CancellationToken)
public QueueMessageHandler(IConnectionRabbit channel, BasicGetResult basicGetResult, string taskId, CancellationToken cancellationToken)
17.80.4.1.1. Parameters
channel IConnectionRabbit
basicGetResult BasicGetResult
taskId string
cancellationToken CancellationToken
17.80.5. Properties
17.80.5.1. CancellationToken
Used to signal that the message ownership has been lost
public CancellationToken CancellationToken { get; set; }
17.80.5.1.1. Property Value
17.80.5.2. MessageId
Id of the message
public string MessageId { get; }
17.80.5.2.1. Property Value
17.80.5.3. ReceptionDateTime
Date of reception of the message
public DateTime ReceptionDateTime { get; init; }
17.80.5.3.1. Property Value
17.80.5.4. Status
Status of the message. Used when the handler is disposed to notify the queue.
public QueueMessageStatus Status { get; set; }
17.80.5.4.1. Property Value
17.80.5.5. TaskId
Task Id contained in the message
public string TaskId { get; }
17.80.5.5.1. Property Value
17.80.6. Methods
17.80.6.1. DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
17.80.6.1.1. Returns
A task that represents the asynchronous dispose operation.