Table of Contents

Interface IWorker<T>

Namespace
JobFlow.Models.Jobs
Assembly
JobFlow.Models.dll

Interface used by Job work processors.

public interface IWorker<T>

Type Parameters

T

Methods

ProcessJob(WorkRequest<T>)

Process a single work request.

Task<WorkResponse> ProcessJob(WorkRequest<T> request)

Parameters

request WorkRequest<T>

Returns

Task<WorkResponse>

ProcessJob(Message<WorkRequest<T>>)

Process an incoming Message containing a Job work request.

Task<Message<WorkResponse>> ProcessJob(Message<WorkRequest<T>> requestMessage)

Parameters

requestMessage Message<WorkRequest<T>>

Returns

Task<Message<WorkResponse>>

Remarks

Default implementation wraps the parameters and response for the previous implementation in Message<T> objects.