Condividi tramite


DurableClientAttribute.TaskHub Property

Definition

Optional. Gets or sets the name of the task hub in which the orchestration data lives.

public string? TaskHub { get; set; }
member this.TaskHub : string with get, set
Public Property TaskHub As String

Property Value

The task hub used by this binding.

Remarks

If not specified, the task hub name used by this binding will be the value specified in host.json. If a task hub name is not configured in host.json and if the function app is running in the Azure Functions hosted service, then task hub name is derived from the function app's name. Otherwise, a constant value is used for the task hub name.

In general, you should not set a value for the task hub name here unless you intend to configure the client to interact with orchestrations in another app.

Applies to