Class WorkerBase
Worker base class.
Namespace: DNVGL.One.Compute.Core.Worker
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public abstract class WorkerBase : object, IWorker, ILogSource
Properties
View SourceLogger
Gets or sets the logger.
Declaration
public ILogger Logger { get; set; }
Property Value
Type | Description |
---|---|
ILogger | The logger. |
Methods
View SourceExecuteAsync(IWorkerExecutionStatusNotificationService, IWorkUnit, IEnumerable<Result>)
Executes the asynchronous.
Declaration
public abstract Task<object> ExecuteAsync(IWorkerExecutionStatusNotificationService workerExecutionStatusNotificationService, IWorkUnit workUnit, IEnumerable<Result> dependencyResults)
Parameters
Type | Name | Description |
---|---|---|
IWorkerExecutionStatusNotificationService | workerExecutionStatusNotificationService | The worker execution status notification service. |
IWorkUnit | workUnit | The work unit. |
IEnumerable<Result> | dependencyResults | The dependency results. |
Returns
Type | Description |
---|---|
Task<System.Object> | Execution task. |
GetLogger()
Gets the logger.
Declaration
protected ILogger GetLogger()
Returns
Type | Description |
---|---|
ILogger | The ILogger. |