Class CompareDatabaseResultHandler
Inherited Members
Namespace: LemonEdge.Client.Core.Tasks
Assembly: LemonEdge.ClientEntities.dll
Syntax
[ServerTaskResult("1B830EBD-35B2-4400-9A04-A21A48FC2CFB", ServerTaskResultType.Client)]
public class CompareDatabaseResultHandler : CompareDatabaseResultHandler, IClientTaskResultHandler, ITaskResultHandler
Constructors
CompareDatabaseResultHandler(IEntityDescriptorFactory, IStorageServiceFactory)
Declaration
public CompareDatabaseResultHandler(IEntityDescriptorFactory entityDescriptorFactory, IStorageServiceFactory storageServiceFactory)
Parameters
Type | Name | Description |
---|---|---|
IEntityDescriptorFactory | entityDescriptorFactory | |
IStorageServiceFactory | storageServiceFactory |
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, CompareDatabaseResults, UserInfo, StringBuilder)
Provides the opportunity to handle the result. For this server implementation the file is written to storage IStorageService
A client override of this behaviour could take the results and directly display them to the user instead of writing them to any storage
Declaration
public override Task ProcessResult(long accountID, ServerTaskParameter parameter, CompareDatabaseResults result, UserInfo user, StringBuilder uncompressedFile)
Parameters
Type | Name | Description |
---|---|---|
long | accountID | The current account the task was running within |
ServerTaskParameter | parameter | The original CompareDatabaseParameters the task was initialized with |
CompareDatabaseResults | result | The result of the task process IServerTask.TaskResult |
UserInfo | user | The user the task was running under |
StringBuilder | uncompressedFile |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |