Class TemporalWorkerServiceOptionsBuilder
- Namespace
- Temporalio.Extensions.Hosting
- Assembly
- Temporalio.Extensions.Hosting.dll
Implementation of ITemporalWorkerServiceOptionsBuilder.
public class TemporalWorkerServiceOptionsBuilder : ITemporalWorkerServiceOptionsBuilder
- Inheritance
-
TemporalWorkerServiceOptionsBuilder
- Implements
- Inherited Members
- Extension Methods
Constructors
TemporalWorkerServiceOptionsBuilder(string, IServiceCollection)
Initializes a new instance of the TemporalWorkerServiceOptionsBuilder class.
public TemporalWorkerServiceOptionsBuilder(string taskQueue, IServiceCollection services)
Parameters
taskQueue
stringTask queue for the worker.
services
IServiceCollectionService collection being configured.
TemporalWorkerServiceOptionsBuilder(string, string?, IServiceCollection)
Initializes a new instance of the TemporalWorkerServiceOptionsBuilder class.
public TemporalWorkerServiceOptionsBuilder(string taskQueue, string? buildId, IServiceCollection services)
Parameters
taskQueue
stringTask queue for the worker.
buildId
stringBuild ID for the worker.
services
IServiceCollectionService collection being configured.
TemporalWorkerServiceOptionsBuilder(string, WorkerDeploymentOptions?, IServiceCollection)
Initializes a new instance of the TemporalWorkerServiceOptionsBuilder class.
public TemporalWorkerServiceOptionsBuilder(string taskQueue, WorkerDeploymentOptions? deploymentOptions, IServiceCollection services)
Parameters
taskQueue
stringTask queue for the worker.
deploymentOptions
WorkerDeploymentOptionsDeployment options for the worker.
services
IServiceCollectionService collection being configured.
Properties
BuildId
Gets the build ID for this worker service. Exclusive with DeploymentOptions.
[Obsolete("Use DeploymentOptions instead")]
public string? BuildId { get; }
Property Value
DeploymentOptions
Gets the deployment options for this worker service. Exclusive with BuildId.
public WorkerDeploymentOptions? DeploymentOptions { get; }
Property Value
Services
Gets the service collection being configured.
public IServiceCollection Services { get; }
Property Value
TaskQueue
Gets the task queue for this worker service.
public string TaskQueue { get; }