# ExecutionStarted Constructors

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

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

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

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

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

Event payload for an attempt of a task's body which the runtime started on the activation.

### Parameters

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