Class TemporalWorkerServiceOptions
- Namespace
- Temporalio.Extensions.Hosting
- Assembly
- Temporalio.Extensions.Hosting.dll
Extension of TemporalWorkerOptions for Temporal worker service that also includes optional client connection options.
public class TemporalWorkerServiceOptions : TemporalWorkerOptions, ICloneable
- Inheritance
-
TemporalWorkerServiceOptions
- Implements
- Inherited Members
Constructors
TemporalWorkerServiceOptions()
Initializes a new instance of the TemporalWorkerServiceOptions class.
public TemporalWorkerServiceOptions()
TemporalWorkerServiceOptions(string)
Initializes a new instance of the TemporalWorkerServiceOptions class.
public TemporalWorkerServiceOptions(string taskQueue)
Parameters
taskQueue
stringTask queue for the worker.
Properties
ClientOptions
Gets or sets the client options. If set, the client will be connected on worker start. If not set, the worker service will expect an existing client to be present.
public TemporalClientConnectOptions? ClientOptions { get; set; }
Property Value
WorkerClientUpdater
Gets or sets the TemporalWorkerClientUpdater that can be used to push Temporal worker client updates to the underlying TemporalWorker. If not set, the worker service will not be updateable with a new Temporal worker client.
public TemporalWorkerClientUpdater? WorkerClientUpdater { get; set; }
Property Value
Methods
Clone()
Create a shallow copy of these options.
public override object Clone()
Returns
- object
A shallow copy of these options and any transitive options fields. Also copies collections of activities and workflows.