Skip to content

IOutbox.Withdraw(MessageId)

Withdraw(MessageId)

abstract
public abstract bool Withdraw(MessageId messageId)
Synchronously stages, for the grain's next journal write, the removal of a pending message which a registered IOutboxMessageSource provides.

Parameters

messageIdMessageId
The ID of a message sent through IOutbox.

Returns

true when the outbox staged the removal; false when no such message is pending.

Exceptions

System.InvalidOperationException
The ID is pending as an ordinary message, or the outbox is unavailable.