Class ClientImportDataResultHandler
Inherited Members
Namespace: LemonEdge.Client.Core.Tasks
Assembly: LemonEdge.ClientEntities.dll
Syntax
[ServerTaskResult("19b76e60-471e-49bb-a072-9ccdc617dbff", ServerTaskResultType.Client)]
[ServerTaskResult("6CB8D870-AF80-40F4-AC31-46DF25F37CD7", ServerTaskResultType.Client)]
public class ClientImportDataResultHandler : ServerImportDataResultHandler, IClientTaskResultHandler, ITaskResultHandler
Constructors
ClientImportDataResultHandler()
Declaration
public ClientImportDataResultHandler()
Fields
MAX_MULTI_ITEMS_TO_OPEN
Declaration
public const int MAX_MULTI_ITEMS_TO_OPEN = 100
Field Value
Type | Description |
---|---|
int |
MAX_SINGLE_ITEMS_TO_OPEN
Declaration
public const int MAX_SINGLE_ITEMS_TO_OPEN = 5
Field Value
Type | Description |
---|---|
int |
Methods
Init(IModelLayoutCommon)
Initializes the handler with the host it is running within
Declaration
public 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
public 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 |
ProcessResult(long, ServerTaskParameter, ImportDataResult, UserInfo, IEntityRetriever, List<ImportLineResultInfo>, 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 override Task ProcessResult(long accountID, ServerTaskParameter parameter, ImportDataResult taskResult, UserInfo user, IEntityRetriever retriever, List<ImportLineResultInfo> results, bool createdTasksProcessed)
Parameters
Type | Name | Description |
---|---|---|
long | accountID | The current account the task was running within |
ServerTaskParameter | parameter | The original ImportDataParameter the task was initialized with |
ImportDataResult | taskResult | |
UserInfo | user | The user the task was running under |
IEntityRetriever | retriever | A context for fetching details |
List<ImportLineResultInfo> | results | |
bool | createdTasksProcessed | Indicates if any tasks created during importing the data (specified with AutoCreatedTaskID) have already been processed |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |