Table of Contents

Struct MessageBrokerClientAcknowledgingMessageEvent

Namespace
LfrlAnvil.MessageBroker.Client.Events
Assembly
LfrlAnvil.MessageBroker.Client.dll

Represents an event emitted by MessageBrokerClient related to sending message notification ACK to the server.

public readonly struct MessageBrokerClientAcknowledgingMessageEvent
Inherited Members

Properties

AckId

Id of the pending ACK associated with the message.

public int AckId { get; }

Property Value

int

IsAutomatic

Specifies whether this ACK was initialized automatically by the client.

public bool IsAutomatic { get; }

Property Value

bool

Remarks

Applies only if Nack is not null.

Listener

MessageBrokerListener related to this event.

public MessageBrokerListener Listener { get; }

Property Value

MessageBrokerListener

MessageId

Unique message id.

public ulong MessageId { get; }

Property Value

ulong

MessageTraceId

Optional trace id of the client event that relates to receiving message notification from the server.

public ulong? MessageTraceId { get; }

Property Value

ulong?

Nack

Optional MessageBrokerNegativeAck instance.

public MessageBrokerNegativeAck? Nack { get; }

Property Value

MessageBrokerNegativeAck?

Remarks

null value means that this event relates to an ACK, otherwise it relates to a negative ACK.

Redelivery

Redelivery attempt of the message.

public int Redelivery { get; }

Property Value

int

Retry

Retry attempt of the message.

public int Retry { get; }

Property Value

int

Source

Event source.

public MessageBrokerClientEventSource Source { get; }

Property Value

MessageBrokerClientEventSource

StreamId

Unique id of the server-side stream that handled the message.

public int StreamId { get; }

Property Value

int

Methods

ToString()

Returns a string representation of this MessageBrokerClientAcknowledgingMessageEvent instance.

[Pure]
public override string ToString()

Returns

string

String representation.