Class MessagePurgedFromQueueException
- Namespace
- Azure.Iot.Operations.Mqtt.Session.Exceptions
- Assembly
- Azure.Iot.Operations.Mqtt.dll
Thrown by a MqttSessionClient.PublishAsync(MQTTnet.MqttApplicationMessage, CancellationToken) if the message is removed from the queue because the message queue size was reached. Depending on the PendingMessagesOverflowStrategy, this either signals that this message was the first message in the queue when the max queue size was reached or that this message tried to be enqueued when the queue was already at the max queue size.
public class MessagePurgedFromQueueException : Exception, ISerializable
- Inheritance
-
MessagePurgedFromQueueException
- Implements
- Inherited Members
Constructors
MessagePurgedFromQueueException(MqttPendingMessagesOverflowStrategy?)
public MessagePurgedFromQueueException(MqttPendingMessagesOverflowStrategy? messagePurgeStrategy = null)
Parameters
messagePurgeStrategy
MqttPendingMessagesOverflowStrategy?
MessagePurgedFromQueueException(MqttPendingMessagesOverflowStrategy?, string?)
public MessagePurgedFromQueueException(MqttPendingMessagesOverflowStrategy? messagePurgeStrategy, string? message)
Parameters
messagePurgeStrategy
MqttPendingMessagesOverflowStrategy?message
string
MessagePurgedFromQueueException(MqttPendingMessagesOverflowStrategy?, string?, Exception?)
public MessagePurgedFromQueueException(MqttPendingMessagesOverflowStrategy? messagePurgeStrategy, string? message, Exception? innerException)
Parameters
messagePurgeStrategy
MqttPendingMessagesOverflowStrategy?message
stringinnerException
Exception
Properties
MessagePurgeStrategy
public MqttPendingMessagesOverflowStrategy? MessagePurgeStrategy { get; }