Interface IClientTaskResultHandler
Provides a mechanism for the client to process task results that can also interact with the client UI rather than just perform internal processing
For instance the LemonEdge.API.Core.Tasks.Processors.ExportCSVTask task has a base handler that writes the results to a file, and a IClientTaskResultHandler that opens that file on the client application for the user to view.
Namespace: LemonEdge.Client.Core.Tasks
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface IClientTaskResultHandler : ITaskResultHandler
Methods
Init(IModelLayoutCommon)
Initializes the handler with the host it is running within
Declaration
void Init(IModelLayoutCommon host)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | host | The host this handler is running within |
ProcessResult(IServerTask, IServerTaskData)
Provides the handler a mechanism for handling the result from the specified completed task.
Declaration
Task ProcessResult(IServerTask task, IServerTaskData data)
Parameters
Type | Name | Description |
---|---|---|
IServerTask | task | A task that has completed its processing and stored its results in IServerTask.TaskResult |
IServerTaskData | data | The data for the task result |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |