26.274. Class ListApplicationsRequestExt

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

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

public static class ListApplicationsRequestExt

26.274.1. Inheritance

objectListApplicationsRequestExt

26.274.2. Inherited Members

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

26.274.3. Methods

26.274.3.1. ToApplicationFilter(Filters)

Converts gRPC message filters into an that represents the filter conditions

[SuppressMessage("Style", "IDE0066:Convert switch statement to expression", Justification = "Readibility with nested switch")]
public static Expression<Func<TaskData, bool>> ToApplicationFilter(this Filters filters)

26.274.3.1.1. Parameters

filters Filters

The gPRC filters

26.274.3.1.2. Returns

Expression<Func<TaskData, bool>>

The that represents the filter conditions

26.274.3.1.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized

26.274.3.2. ToField(ApplicationField)

Converts gRPC message into the associated field

[SuppressMessage("Style", "IDE0066:Convert switch statement to expression", Justification = "Readibility with nested switch")]
public static Expression<Func<Application, object?>> ToField(this ApplicationField field)

26.274.3.2.1. Parameters

field ApplicationField

The gPRC message

26.274.3.2.2. Returns

Expression<Func<Application, object?>>

The that access the field from the object

26.274.3.2.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized