17.181. Class TaskProcessingCheckerClient
Namespace: ArmoniK.Core.Common.Pollster.TaskProcessingChecker
Assembly: ArmoniK.Core.Common.dll
public class TaskProcessingCheckerClient : ITaskProcessingChecker
17.181.1. Inheritance
17.181.2. Implements
17.181.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
17.181.4. Constructors
17.181.4.1. TaskProcessingCheckerClient(IHttpClientFactory, ILogger<TaskProcessingCheckerClient>)
public TaskProcessingCheckerClient(IHttpClientFactory httpClientFactory, ILogger<TaskProcessingCheckerClient> logger)
17.181.4.1.1. Parameters
httpClientFactory IHttpClientFactory
logger ILogger<TaskProcessingCheckerClient>
17.181.5. Methods
17.181.5.1. Check(string, string, CancellationToken)
Check if the task is running on the given pod
public Task<bool> Check(string taskId, string ownerPodId, CancellationToken cancellationToken)
17.181.5.1.1. Parameters
taskId string
id of the task to check
ownerPodId string
Id of the pod which should execute the task
cancellationToken CancellationToken
Token used to cancel the execution of the method
17.181.5.1.2. Returns
A bool representing whether or not the task is running on the pod