Interface IWorker
Used to identify the Product Specific Worker Model classes that will be MEF imported by the worker host. Provides a contract that the worker model must implemented in order for the worker host and worker model executor to execute the task work unit.
Namespace: DNVGL.One.Compute.Core.Worker
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IWorker
Methods
View SourceExecuteAsync(IWorkerExecutionStatusNotificationService, IWorkUnit, IEnumerable<Result>)
Execute the task work unit.
Declaration
Task<object> ExecuteAsync(IWorkerExecutionStatusNotificationService workerExecutionStatusNotificationService, IWorkUnit workUnit, IEnumerable<Result> dependencyResults)
Parameters
Type | Name | Description |
---|---|---|
IWorkerExecutionStatusNotificationService | workerExecutionStatusNotificationService | The worker execution status notification service. |
IWorkUnit | workUnit | The work unit. |
IEnumerable<Result> | dependencyResults | The results from work units that |
Returns
Type | Description |
---|---|
Task<System.Object> | The result of the task - which is a product-specific object. |