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
System.Object
TransactionRevertResultHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.Client.Core.Tasks
Assembly: ClientCore.dll
Syntax
[ServerTaskResult("d397971d-4079-4942-83cc-89fbc0680357", ServerTaskResultType.Client)]
public class TransactionRevertResultHandler : OpenOrRefreshResultItem<RevertTransactionResult>, IClientTaskResultHandler, ITaskResultHandler
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 |
System.Object | rawResult | The raw result returned from running the task |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<RevertTransactionResult> | The raw result cast to a RevertTransactionResult, which it is anyway |
Overrides
LemonEdge.Client.Core.Tasks.OpenOrRefreshResultItem<LemonEdge.API.Tasks.RevertTransactionResult>.ConvertRawResultIntoResultType(LemonEdge.API.Tasks.ServerTaskParameter, System.Object)
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 |
---|---|
System.ValueTuple<System.Guid, System.Guid> | The type and id of the transaction that was reverted from the task result |
Overrides
LemonEdge.Client.Core.Tasks.OpenOrRefreshResultItem<LemonEdge.API.Tasks.RevertTransactionResult>.GetItemToOpenOrRefresh(LemonEdge.API.Tasks.RevertTransactionResult)