# ReplayEnded Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.diagnostics.durabletaskevents.replayended/)

## ReplayEnded(IGrainContext, TaskId) {#constructor-orleans-runtime-igraincontext-orleans-durable-tasks-taskid-46eb77a0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.diagnostics.durabletaskevents.replayended/constructors/constructor-orleans-runtime-igraincontext-orleans-durable-tasks-taskid-46eb77a0/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/Diagnostics/DurableTaskEvents.cs#L131)

```csharp
public ReplayEnded(IGrainContext grainContext, TaskId taskId)
```

Event payload for an attempt of a task's body which replayed the operations which earlier attempts recorded, and started an operation which no earlier attempt recorded: `DurableTaskContext.IsReplaying` reports `false` from this point.

### Parameters

- `grainContext` (`IGrainContext`): The activation whose runtime raised the event.
- `taskId` (`TaskId`): The task whose body runs.
