Interface ITaskResultHandler
An interface that can be implemented to handle the result returned from ProcessTask(CancellationToken) for every task implementation in the system
Must be marked with the ServerTaskResultAttribute to specify which type of task it handles results for
Namespace: LemonEdge.API.Tasks
Assembly: API.dll
Syntax
public interface ITaskResultHandler
Methods
ProcessRawResult(ITaskRunner, ServerTaskParameter, Object)
Processes the result from an appropriate ProcessTask(CancellationToken) function call for the task this implementation is marked as handling with the ServerTaskResultAttribute
Declaration
Task<ServerTaskResult> ProcessRawResult(ITaskRunner runner, ServerTaskParameter parameter, object result)
Parameters
Type | Name | Description |
---|---|---|
ITaskRunner | runner | The task runner this task has been running in |
ServerTaskParameter | parameter | The initial parameter the task was run with |
System.Object | result | The result returned from processing the task |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServerTaskResult> | A conversion from the result of the ProcessTask(CancellationToken) call to a ServerTaskResult to allow clients to interact with the result from tasks running on services |