# OutboxRetryScheduled Constructors

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

## OutboxRetryScheduled(IGrainContext, MessageId, GrainId, int, DateTimeOffset, string) {#constructor-orleans-runtime-igraincontext-orleans-durable-messaging-messageid-or-ba2e0471}

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

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

```csharp
public OutboxRetryScheduled(IGrainContext grainContext, MessageId messageId, GrainId receiverId, int attemptCount, DateTimeOffset nextAttemptAt, string error)
```

Event payload for a failed delivery attempt whose retry the outbox staged.

### Parameters

- `grainContext` (`IGrainContext`): The sending activation.
- `messageId` (`MessageId`): The message's ID.
- `receiverId` (`GrainId`): The receiving grain.
- `attemptCount` (`int`): The number of failed delivery attempts so far.
- `nextAttemptAt` (`DateTimeOffset`): The time, on the Durable Jobs clock, from which the outbox attempts the delivery again.
- `error` (`string`): The attempt's failure.
