Show / Hide Table of Contents

Class WorkerBase

Worker base class

Inheritance
System.Object
WorkerBase
WorkerBase<TIn, TOut>
Implements
IWorker
ILogSource
Namespace: DNVGL.One.Compute.Core.Worker
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public abstract class WorkerBase : object, IWorker, ILogSource

Properties

View Source

Logger

Gets or sets the logger.

Declaration
public ILogger Logger { get; set; }
Property Value
Type Description
ILogger

The logger.

Methods

View Source

ExecuteAsync(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

View Source

GetLogger()

Gets the logger.

Declaration
protected ILogger GetLogger()
Returns
Type Description
ILogger

The ILogger

Implements

IWorker
ILogSource

See Also

IWorker
  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.