# SelectionWaitStarted Constructors

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

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

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

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

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

Event payload for a selection of the first task to complete, such as `DurableTask.WhenAny`'s, which found no completed candidate and waits for one.

### Parameters

- `grainContext` (`IGrainContext`): The activation whose runtime raised the event.
- `taskId` (`TaskId`): The selection's decision, which records the winner.
