# DurableTaskContext.HostId

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskcontext/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskcontext/properties/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableTaskContext.cs#L649)

```csharp
protected internal virtual string? HostId
```

Gets the identity of the host which runs this execution, such as its grain, which qualifies the root identifiers which the execution derives for the detached tasks it starts, or `null` for none.
