Class JobMonitorExtensions
Extension methods for IJobMonitor
Inheritance
System.Object
JobMonitorExtensions
Namespace: DNVGL.One.Compute.Core.Scheduling
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public static class JobMonitorExtensions : object
Methods
View SourceAwaitTerminationAsync(IJobMonitor, String)
Await job termination.
Declaration
public static Task<WorkStatus> AwaitTerminationAsync(this IJobMonitor jobMonitor, string jobId)
Parameters
Type | Name | Description |
---|---|---|
IJobMonitor | jobMonitor | The job monitor. |
System.String | jobId | The job identifier. |
Returns
Type | Description |
---|---|
Task<WorkStatus> | Asynchronous task |
AwaitTerminationAsync(IJobMonitor, String, CancellationToken)
Await job termination.
Declaration
public static Task<WorkStatus> AwaitTerminationAsync(this IJobMonitor jobMonitor, string jobId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IJobMonitor | jobMonitor | The job monitor. |
System.String | jobId | The job identifier. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkStatus> | Asynchronous task |