Show / Hide Table of Contents

Class WorkItemStatusServiceExtensions

Extension methods for IWorkItemStatusService.

Inheritance
object
WorkItemStatusServiceExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DNVGL.One.Compute.Core.Extensions
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public static class WorkItemStatusServiceExtensions

Methods

View Source

AggregateJobDuration(IWorkItemStatusService, string)

Aggregates the duration of the job.

Declaration
public static long AggregateJobDuration(this IWorkItemStatusService statusService, string jobId)
Parameters
Type Name Description
IWorkItemStatusService statusService

The status service.

string jobId

The job identifier.

Returns
Type Description
long

The job duration in milliseconds.

View Source

GetJobStatus(IJobStatusService, Job)

Gets the job status.

Declaration
public static JobInfo GetJobStatus(this IJobStatusService statusService, Job job)
Parameters
Type Name Description
IJobStatusService statusService

The job status service.

Job job

The job.

Returns
Type Description
JobInfo

The Job info.

View Source

UpdateJobStatus(IJobStatusService, Job, WorkStatus, double, string)

Updates the job status.

Declaration
public static void UpdateJobStatus(this IJobStatusService statusService, Job job, WorkStatus status, double progress, string message = null)
Parameters
Type Name Description
IJobStatusService statusService

The job status service.

Job job

The job.

WorkStatus status

The status.

double progress

The progress.

string message

The message.

View Source

UpdateJobStatus(IJobStatusService, string, WorkStatus, double, string)

Updates the job status.

Declaration
public static void UpdateJobStatus(this IJobStatusService statusService, string jobId, WorkStatus status, double progress, string message = null)
Parameters
Type Name Description
IJobStatusService statusService

The job status service.

string jobId

The job identifier.

WorkStatus status

The status.

double progress

The progress.

string message

The message.

View Source

UpdateWorkItemStatus(IWorkItemStatusService, string, string, string, WorkStatus, double, string)

Updates the work item status.

Declaration
public static void UpdateWorkItemStatus(this IWorkItemStatusService statusService, string jobId, string itemId, string parentItemId, WorkStatus state, double progress, string message = null)
Parameters
Type Name Description
IWorkItemStatusService statusService

The status service.

string jobId

The job identifier.

string itemId

The item identifier.

string parentItemId

The parent item identifier.

WorkStatus state

The state.

double progress

The progress.

string message

The message.

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