Class SQLWrapperDatasetUsageResultHandler
The result handler that takes a data import task (UNIQUE_TASK_ID) result and provides the client an opportunity to process it. The server implementation does nothing with the results themselves
Implements
Inherited Members
Namespace: LemonEdge.API.Core.Tasks.Results
Assembly: LemonEdge.API.dll
Syntax
[ServerTaskResult("5641134D-60FE-4712-B18B-4E3F4C5B719A", ServerTaskResultType.Server)]
public class SQLWrapperDatasetUsageResultHandler : ITaskResultHandler
Constructors
SQLWrapperDatasetUsageResultHandler()
Declaration
public SQLWrapperDatasetUsageResultHandler()
Methods
ProcessRawResult(ITaskRunner, ServerTaskParameter, object)
Takes the direct output of the import data task and converts it to a SQLWrapperDatasetUsageResult
Declaration
public 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 SQLWrapperDatasetUsageParameter parameter the task was run with |
object | result | The result returned from processing the task, which is a list of SQLWrapperDatasetReferenceRoot |
Returns
Type | Description |
---|---|
Task<ServerTaskResult> | A ServerTaskResult holding the results of the import data task ( UNIQUE_TASK_ID) |
ProcessResult(long, ServerTaskParameter, SQLWrapperDatasetUsageResult, UserInfo, IEntityRetriever, List<SQLWrapperDatasetReferenceRoot>, bool)
Provides the opportunity to handle the result. For this server implementation nothing is done
A client override of this behaviour could take the results and open imported items, or the task for details in the case of import failures
Declaration
protected virtual Task ProcessResult(long accountID, ServerTaskParameter parameter, SQLWrapperDatasetUsageResult result, UserInfo user, IEntityRetriever retriever, List<SQLWrapperDatasetReferenceRoot> importInfo, bool createdTasksProcessed)
Parameters
Type | Name | Description |
---|---|---|
long | accountID | The current account the task was running within |
ServerTaskParameter | parameter | The original SQLWrapperDatasetUsageResult the task was initialized with |
SQLWrapperDatasetUsageResult | result | The result of the task process IServerTask.TaskResult |
UserInfo | user | The user the task was running under |
IEntityRetriever | retriever | A context for fetching details |
List<SQLWrapperDatasetReferenceRoot> | importInfo | The results of the import task |
bool | createdTasksProcessed | Indicates if any tasks created during importing the data (specified with SQLWrapperDatasetReferenceRoot.AutoCreatedTaskID) have already been processed |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |