Class UpgradeDatabaseResultProcessor
Inherited Members
Namespace: LemonEdge.Client.Core.Tasks
Assembly: LemonEdge.ClientEntities.dll
Syntax
[ServerTaskResult("0B63C444-1127-4631-805D-3ADA803F0288", ServerTaskResultType.Client)]
public class UpgradeDatabaseResultProcessor : IClientTaskResultHandler, ITaskResultHandler
Constructors
UpgradeDatabaseResultProcessor(IConnectionUpgraderNotifier)
Declaration
public UpgradeDatabaseResultProcessor(IConnectionUpgraderNotifier upgraderNotifier)
Parameters
Type | Name | Description |
---|---|---|
IConnectionUpgraderNotifier | upgraderNotifier |
Properties
Displayer
Declaration
public IModelLayoutCommon Displayer { get; }
Property Value
Type | Description |
---|---|
IModelLayoutCommon |
Methods
ConvertRawResultIntoResult(ServerTaskParameter, object)
Declaration
protected Task<ServerTaskResult> ConvertRawResultIntoResult(ServerTaskParameter parameter, object rawResult)
Parameters
Type | Name | Description |
---|---|---|
ServerTaskParameter | parameter | |
object | rawResult |
Returns
Type | Description |
---|---|
Task<ServerTaskResult> |
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 |
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
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 parameter the task was run with |
object | result | The result returned from processing the task |
Returns
Type | Description |
---|---|
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 |
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 |