26.190. Class TaskProcessingCheckerClient
Namespace: ArmoniK.Core.Common.Pollster.TaskProcessingChecker
Assembly: ArmoniK.Core.Common.dll
Implements the
public class TaskProcessingCheckerClient : ITaskProcessingChecker
26.190.1. Inheritance
26.190.2. Implements
26.190.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
26.190.4. Constructors
26.190.4.1. TaskProcessingCheckerClient(IHttpClientFactory, ILogger<TaskProcessingCheckerClient>)
Initializes a new instance of the
public TaskProcessingCheckerClient(IHttpClientFactory httpClientFactory, ILogger<TaskProcessingCheckerClient> logger)
26.190.4.1.1. Parameters
httpClientFactory IHttpClientFactory
The HTTP client factory used to create HTTP clients for communication with other pods.
logger ILogger<TaskProcessingCheckerClient>
The logger used for diagnostic and trace logging.
26.190.5. Methods
26.190.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)
26.190.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
26.190.5.1.2. Returns
A bool representing whether or not the task is running on the pod