Interface ISupportJobPreparation
Optional interface to be implemented by a worker. If implemented, the worker host will invoke the PrepareJobAsync(IWorkerExecutionStatusNotificationService, IWorkUnit) method when the job preparation task is run.
Namespace: DNVGL.One.Compute.Core.Worker
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface ISupportJobPreparation
Methods
View SourcePrepareJobAsync(IWorkerExecutionStatusNotificationService, IWorkUnit)
Prepares the job.
Declaration
Task<object> PrepareJobAsync(IWorkerExecutionStatusNotificationService workerExecutionStatusNotificationService, IWorkUnit workUnit)
Parameters
Type | Name | Description |
---|---|---|
IWorkerExecutionStatusNotificationService | workerExecutionStatusNotificationService | The worker execution status notification service. |
IWorkUnit | workUnit | The work unit. |
Returns
Type | Description |
---|---|
Task<System.Object> | Preparation result. |