Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DurableTaskHubResource

Handle
📦 Aspire.Hosting.Azure.Functions v17.0.0

Represents a Durable Task hub resource. A Task Hub groups durable orchestrations and activities. This resource extends the scheduler connection string with the TaskHub name so that clients can connect to the correct hub.

type DurableTaskHubResource interface {
ExpressionValue
Resource
ResourceWithConnectionString
ResourceWithParent
}

Properties

propertyConnectionStringExpression*ReferenceExpressionget
Gets the connection string expression composed of the scheduler connection string and the TaskHub name.
ConnectionStringExpression() *ReferenceExpression
propertyTaskHubName*ReferenceExpressionget
Gets the name of the Task Hub. If not provided, the logical name of this resource is returned.
TaskHubName() *ReferenceExpression

Methods

methodWithTaskHubNamebuilder
Sets the Durable Task hub name from a string or parameter resource.
WithTaskHubName(taskHubName any) DurableTaskHubResource
taskHubNameany
DurableTaskHubResource

Returns a handle; failures surface later via Err().