21.213. Class ResultLifeCycleHelper
Namespace: ArmoniK.Core.Common.Storage
Assembly: ArmoniK.Core.Common.dll
Helper to manage Results
public static class ResultLifeCycleHelper
21.213.1. Inheritance
21.213.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.213.3. Methods
21.213.3.1. AbortTasksAndResults(ITaskTable, IResultTable, ICollection<string>, string?, CancellationToken)
Abort all tasks and results that depend directly or indirectly of the specified tasks
public static Task AbortTasksAndResults(ITaskTable taskTable, IResultTable resultTable, ICollection<string> taskIds, string? reason, CancellationToken cancellationToken)
21.213.3.1.1. Parameters
taskTable ITaskTable
Interface to manage task states
resultTable IResultTable
Interface to manage result states
taskIds ICollection<string>
Root tasks that must be aborted
reason string?
Abortion message
cancellationToken CancellationToken
Token used to cancel the execution of the method
21.213.3.1.2. Returns
Task representing the asynchronous execution of the method
21.213.3.2. PurgeResultsAsync(IResultTable, IObjectStorage, string, CancellationToken)
public static Task PurgeResultsAsync(IResultTable resultTable, IObjectStorage objectStorage, string sessionId, CancellationToken cancellationToken)
21.213.3.2.1. Parameters
resultTable IResultTable
objectStorage IObjectStorage
sessionId string
cancellationToken CancellationToken