Show / Hide Table of Contents

Interface IWorkUnit

Models atomic (not decomposable) work

Namespace: DNVGL.One.Compute.Core.FlowModel
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IWorkUnit

Properties

View Source

Data

Gets the item data.

Declaration
DataContainer Data { get; }
Property Value
Type Description
DataContainer

The item data.

View Source

IsReductionTask

Gets a value indicating whether this work unit is a reduction task for the parent.

Declaration
bool IsReductionTask { get; }
Property Value
Type Description
System.Boolean

true if this work unit is reduction task for the parent; otherwise, false.

View Source

Item[String]

Gets the with the specified property name.

Declaration
string this[string propertyName] { get; }
Parameters
Type Name Description
System.String propertyName

Name of the property.

Property Value
Type Description
System.String

The .

View Source

Request

Gets the application request.

Declaration
string Request { get; }
Property Value
Type Description
System.String

The application request.

Remarks

This property can be used by the client application to communicate an application specific request to the application worker. It is not used by One Compute.

Methods

View Source

GetInput<T>()

Gets the input for the work unit.

Declaration
T GetInput<T>()
    where T : class
Returns
Type Description
T

The work unit input

Type Parameters
Name Description
T

Input type

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