Show / Hide Table of Contents

Interface IDynamicWorkMonitor

Dynamic work monitor interface.

Namespace: DNVGL.One.Compute.Core.JobStatus
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IDynamicWorkMonitor

Methods

View Source

AddWorkTask(string, Task<WorkStatus>)

Register an asynchronous task that processes the given work id.

Declaration
void AddWorkTask(string workId, Task<WorkStatus> dynamicWorkTask)
Parameters
Type Name Description
string workId

Id of the work item being processed by the task.

Task<WorkStatus> dynamicWorkTask

A task returning a WorkStatus.

View Source

WaitForDynamicWorkToComplete(Job, WorkStatus)

Wait for all dynamic work items registered for the job to terminate.

Declaration
WorkStatus WaitForDynamicWorkToComplete(Job job, WorkStatus state)
Parameters
Type Name Description
Job job

The job.

WorkStatus state

Input job state.

Returns
Type Description
WorkStatus

A terminal job state for the job.

  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.