30.279. 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

30.279.1. Inheritance

objectListApplicationsRequestExt

30.279.2. Inherited Members

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

30.279.3. Methods

30.279.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)

30.279.3.1.1. Parameters

filters Filters

The gPRC filters

30.279.3.1.2. Returns

Expression<Func<TaskData, bool>>

The that represents the filter conditions

30.279.3.1.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized

30.279.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)

30.279.3.2.1. Parameters

field ApplicationField

The gPRC message

30.279.3.2.2. Returns

Expression<Func<Application, object?>>

The that access the field from the object

30.279.3.2.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized