Interface IWorkExecutionMonitor
Enable monitoring of the execution of IComputationalWork.
Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public interface IWorkExecutionMonitor
Properties
View SourceCancellationToken
Gets the cancellation token.
Declaration
CancellationToken CancellationToken { get; }
Property Value
Type | Description |
---|---|
CancellationToken | The cancellation token. |
Exception
Gets the exception if an exception occurred while executing the ExecutableWork.
Declaration
Exception Exception { get; }
Property Value
Type | Description |
---|---|
Exception | The exception. |
ExecutionResult
Gets the result from executing the work.
Declaration
Task<object> ExecutionResult { get; }
Property Value
Type | Description |
---|---|
Task<System.Object> | The execution result. |
Message
Gets the message.
Declaration
string Message { get; }
Property Value
Type | Description |
---|---|
System.String | The message. |
Progress
Gets the progress as a fraction between 0 (no progress) and 1 (complete).
Declaration
double Progress { get; }
Property Value
Type | Description |
---|---|
System.Double | The progress as a fraction between 0 and 1. |
Result
Gets the result.
Declaration
object Result { get; }
Property Value
Type | Description |
---|---|
System.Object | The result. |
Status
Gets the work status.
Declaration
WorkStatus Status { get; }
Property Value
Type | Description |
---|---|
WorkStatus | The status. |
Events
View SourceWorkEvent
Occurs when the status or progress of a work item changes.
Declaration
event EventHandler<ExecutableWorkEventArgs> WorkEvent
Event Type
Type | Description |
---|---|
EventHandler<ExecutableWorkEventArgs> |