Table of Contents

Struct MessageBrokerQueueMessageDiscardedEvent

Namespace
LfrlAnvil.MessageBroker.Server.Events
Assembly
LfrlAnvil.MessageBroker.Server.dll

Represents an event emitted by MessageBrokerQueue when an enqueued message was discarded due to disposed listener.

public readonly struct MessageBrokerQueueMessageDiscardedEvent
Inherited Members

Properties

Listener

MessageBrokerChannelListenerBinding that received this message.

public MessageBrokerChannelListenerBinding Listener { get; }

Property Value

MessageBrokerChannelListenerBinding

MessageRemoved

Specifies whether the data of this message has been removed from the stream's message store due to no longer being referenced.

public bool MessageRemoved { get; }

Property Value

bool

MovedToDeadLetter

Specifies whether the message has been moved to dead letter.

public bool MovedToDeadLetter { get; }

Property Value

bool

Publisher

IMessageBrokerMessagePublisher that pushed this message.

public IMessageBrokerMessagePublisher Publisher { get; }

Property Value

IMessageBrokerMessagePublisher

Reason

Specifies the reason behind discarding of this message.

public MessageBrokerQueueDiscardMessageReason Reason { get; }

Property Value

MessageBrokerQueueDiscardMessageReason

Remarks

See MessageBrokerQueueDiscardMessageReason for more information.

Redelivery

Redelivery attempt of this message.

public int Redelivery { get; }

Property Value

int

Retry

Retry attempt of this message.

public int Retry { get; }

Property Value

int

Source

Event source.

public MessageBrokerQueueEventSource Source { get; }

Property Value

MessageBrokerQueueEventSource

StoreKey

Key of the stream's message store entry associated with this message.

public int StoreKey { get; }

Property Value

int

Methods

ToString()

Returns a string representation of this MessageBrokerQueueMessageDiscardedEvent instance.

[Pure]
public override string ToString()

Returns

string

String representation.