Skip to content

IOutboxMessageSource Methods

Provides outgoing messages whose payload and receiver the application stores in its own journaled state.

OnRetired(MessageId, OutboxMessageRetirement)

abstract
public abstract void OnRetired(MessageId messageId, OutboxMessageRetirement retirement)
Notifies the source that the outbox is staging a message's retirement, so the source can release its payload.

Parameters

messageIdMessageId
The ID of the retired reference entry.
retirementOutboxMessageRetirement
How the message retired, and the dead letter's reason for a dead-lettered message.

TryGetMessage(MessageId, OutboxMessage)

abstract
public abstract bool TryGetMessage(MessageId messageId, out OutboxMessage message)
Materializes a message for its send or a delivery attempt.

Parameters

messageIdMessageId
The ID of a reference entry.
messageOutboxMessage
When this method returns true, a valid message whose envelope's Envelope is messageId and whose receiver is another grain.

Returns

true when this source provides the message; false when the message isn't this source's.