# OutboxMessageRetired Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.diagnostics.messagingevents.outboxmessageretired/)

## OutboxMessageRetired(IGrainContext, MessageId, OutboxMessageRetirement) {#constructor-orleans-runtime-igraincontext-orleans-durable-messaging-messageid-or-ba00ab84}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.diagnostics.messagingevents.outboxmessageretired/constructors/constructor-orleans-runtime-igraincontext-orleans-durable-messaging-messageid-or-ba00ab84/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Messaging/Diagnostics/MessagingEvents.cs#L105-L111)

```csharp
public OutboxMessageRetired(IGrainContext grainContext, MessageId messageId, OutboxMessageRetirement retirement)
```

Event payload for an outbox message whose retirement the outbox staged: the message was delivered, its receiver rejected it, or the outbox dead-lettered it.

### Parameters

- `grainContext` (`IGrainContext`): The sending activation.
- `messageId` (`MessageId`): The message's ID.
- `retirement` (`OutboxMessageRetirement`): How the message retired.
