Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DurableTaskSchedulerResource

Handle
📦 Aspire.Hosting.Azure.Functions v17.0.0
type DurableTaskSchedulerResource interface {
ExpressionValue
Resource
ResourceWithConnectionString
ResourceWithEndpoints
}

Methods

methodAddTaskHubbuilder
Adds a Durable Task hub resource associated with the specified scheduler.
AddTaskHub(name string) DurableTaskHubResource
namestringThe logical name of the task hub resource.
DurableTaskHubResource

The resource builder.

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

methodRunAsEmulatorbuilder
Configures the Durable Task scheduler to run using the local emulator (only in non-publish modes).
RunAsEmulator(options ...*RunAsEmulatorOptions) DurableTaskSchedulerResource
options...*RunAsEmulatorOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*RunAsEmulatorOptions argument.

ConfigureContainerfunc(obj DurableTaskSchedulerEmulatorResource)callbackCallback that exposes underlying container used for emulation to allow for customization.
DurableTaskSchedulerResource

The resource builder.

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

methodRunAsExistingbuilder
Configures the Durable Task scheduler to use an existing scheduler instance from a connection string or parameter resource.
RunAsExisting(connectionString any) DurableTaskSchedulerResource
connectionStringany
DurableTaskSchedulerResource

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