# ExecutionStopped Constructors

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

## ExecutionStopped(IGrainContext, TaskId) {#constructor-orleans-runtime-igraincontext-orleans-durable-tasks-taskid-e6eff04e}

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

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

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

Event payload for an attempt of a task's body which ended on the activation: the body completed, or the runtime abandoned the attempt, for example because an abort or a deletion ended the task.

### Parameters

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