22.279. Class ListTasksRequestExt

Namespace: ArmoniK.Core.Common.gRPC
Assembly: ArmoniK.Core.Common.dll

Provides extension methods for converting gRPC task requests and filters into LINQ expressions for querying objects. Includes utilities for mapping gRPC fields and filters to strongly-typed expressions used in task-related logic.

public static class ListTasksRequestExt

22.279.1. Inheritance

objectListTasksRequestExt

22.279.2. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

22.279.3. Methods

22.279.3.1. ToField(Sort)

Converts gRPC message into the associated field

public static Expression<Func<TaskData, object?>> ToField(this ListTasksRequest.Types.Sort sort)

22.279.3.1.1. Parameters

sort ListTasksRequest.Types.Sort

The gPRC message

22.279.3.1.2. Returns

Expression<Func<TaskData, object?>>

The that access the field from the object

22.279.3.1.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized

22.279.3.2. ToField(TaskField)

Converts gRPC message into the associated field

public static Expression<Func<TaskData, object?>> ToField(this TaskField taskField)

22.279.3.2.1. Parameters

taskField TaskField

The gPRC message field

22.279.3.2.2. Returns

Expression<Func<TaskData, object?>>

The that access the field from the object

22.279.3.2.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized

22.279.3.3. ToTaskDataFilter(Filters)

Converts gRPC message filters into an that represents the filter conditions

public static Expression<Func<TaskData, bool>> ToTaskDataFilter(this Filters filters)

22.279.3.3.1. Parameters

filters Filters

The gPRC filters

22.279.3.3.2. Returns

Expression<Func<TaskData, bool>>

The that represents the filter conditions

22.279.3.3.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized