Show / Hide Table of Contents

Interface IWorker

Used to identify the Product Specific Worker Model classes that will be MEF imported by the worker host. Provides a contract that the worker model must implemented in order for the worker host and worker model executor to execute the task work unit.

Namespace: DNVGL.One.Compute.Core.Worker
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IWorker

Methods

View Source

ExecuteAsync(IWorkerExecutionStatusNotificationService, IWorkUnit, IEnumerable<Result>)

Execute the task work unit.

Declaration
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 results from work units that workUnit depends on.

Returns
Type Description
Task<System.Object>

The result of the task - which is a product-specific object.

  • View Source
In This Article
Back to top Copyright © DNV AS. All rights reserved.