Class JobMonitor
Job monitor.
Implements
Inherited Members
Namespace: DNVGL.One.Compute.Core.PlatformClient
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public class JobMonitor : IJobMonitor
Constructors
View SourceJobMonitor(int, IOneComputePlatformClient)
Initializes a new instance of the JobMonitor class.
Declaration
public JobMonitor(int pollingIntervalSeconds, IOneComputePlatformClient platformClient)
Parameters
Type | Name | Description |
---|---|---|
int | pollingIntervalSeconds | The polling interval seconds. |
IOneComputePlatformClient | platformClient | The platform client. |
See Also
Properties
View SourcePollingIntervalSeconds
Gets or sets the polling interval.
Declaration
public int PollingIntervalSeconds { get; set; }
Property Value
Type | Description |
---|---|
int | The polling interval in seconds. |
See Also
Methods
View SourceAwaitJobTerminationAsync(CancellationToken)
Awaits job termination.
Declaration
public Task<WorkStatus> AwaitJobTerminationAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<WorkStatus> | Terminal job status. |
See Also
View SourceBeginMonitorJob(string, CancellationToken)
Monitors the job.
Declaration
public void BeginMonitorJob(string jobId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | jobId | The job identifier. |
CancellationToken | cancellationToken | The cancellation token. |
See Also
Events
View SourceJobProgressChanged
Occurs when a Job changes progress.
Declaration
public event EventHandler<JobEventArgs> JobProgressChanged
Event Type
Type | Description |
---|---|
EventHandler<JobEventArgs> |
See Also
View SourceJobStatusChanged
Occurs when a Job changes status.
Declaration
public event EventHandler<JobEventArgs> JobStatusChanged
Event Type
Type | Description |
---|---|
EventHandler<JobEventArgs> |
See Also
View SourceWorkItemProgressChanged
Occurs when a WorkItem changes progress.
Declaration
public event EventHandler<WorkItemEventArgs> WorkItemProgressChanged
Event Type
Type | Description |
---|---|
EventHandler<WorkItemEventArgs> |
See Also
View SourceWorkItemStatusChanged
Occurs when a WorkItem changes status.
Declaration
public event EventHandler<WorkItemEventArgs> WorkItemStatusChanged
Event Type
Type | Description |
---|---|
EventHandler<WorkItemEventArgs> |