Table of Contents

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 string

Task 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

TemporalClientConnectOptions

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.