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
taskQueuestringTask queue for the worker.
servicesIServiceCollectionService collection being configured.
TemporalWorkerServiceOptionsBuilder(string, string?, IServiceCollection)
Initializes a new instance of the TemporalWorkerServiceOptionsBuilder class.
public TemporalWorkerServiceOptionsBuilder(string taskQueue, string? buildId, IServiceCollection services)
Parameters
taskQueuestringTask queue for the worker.
buildIdstringBuild ID for the worker.
servicesIServiceCollectionService collection being configured.
TemporalWorkerServiceOptionsBuilder(string, WorkerDeploymentOptions?, IServiceCollection)
Initializes a new instance of the TemporalWorkerServiceOptionsBuilder class.
public TemporalWorkerServiceOptionsBuilder(string taskQueue, WorkerDeploymentOptions? deploymentOptions, IServiceCollection services)
Parameters
taskQueuestringTask queue for the worker.
deploymentOptionsWorkerDeploymentOptionsDeployment options for the worker.
servicesIServiceCollectionService 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; }