Class TransactionRevertResultHandler
A client handler for all UNIQUE_TASK_ID tasks.
Opens, or refreshes, the transaction item that was reverted by the running of that task
Inheritance
TransactionRevertResultHandler
Inherited Members
Namespace: LemonEdge.Client.Core.Tasks
Assembly: LemonEdge.ClientCore.dll
Syntax
[ServerTaskResult("d397971d-4079-4942-83cc-89fbc0680357", ServerTaskResultType.Client)]
public class TransactionRevertResultHandler : OpenOrRefreshResultItem<RevertTransactionResult>, IClientTaskResultHandler, ITaskResultHandler
Constructors
TransactionRevertResultHandler()
Declaration
public TransactionRevertResultHandler()
Methods
ConvertRawResultIntoResultType(ServerTaskParameter, object)
Converts the rawResult
into a RevertTransactionResult, which is immediate as the
task returns a raw result of type RevertTransactionResult anyway
Declaration
protected override Task<RevertTransactionResult> ConvertRawResultIntoResultType(ServerTaskParameter parameter, object rawResult)
Parameters
Type | Name | Description |
---|---|---|
ServerTaskParameter | parameter | The parameter used to run this task |
object | rawResult | The raw result returned from running the task |
Returns
Type | Description |
---|---|
Task<RevertTransactionResult> | The raw result cast to a RevertTransactionResult, which it is anyway |
Overrides
GetItemToOpenOrRefresh(RevertTransactionResult)
Returns the type and id of the transaction that was reverted from the task result
Declaration
protected override (Guid TypeID, Guid ID) GetItemToOpenOrRefresh(RevertTransactionResult resultInfo)
Parameters
Type | Name | Description |
---|---|---|
RevertTransactionResult | resultInfo | The result of the task to handle |
Returns
Type | Description |
---|---|
(Guid TypeID, Guid ID) | The type and id of the transaction that was reverted from the task result |