Interface IWorker<T>
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
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
Remarks
Default implementation wraps the parameters and response for the previous implementation in Message<T> objects.