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

22.275.1. Inheritance

objectListApplicationsRequestExt

22.275.2. Inherited Members

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

22.275.3. Methods

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

22.275.3.1.1. Parameters

filters Filters

The gPRC filters

22.275.3.1.2. Returns

Expression<Func<TaskData, bool>>

The that represents the filter conditions

22.275.3.1.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized

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

22.275.3.2.1. Parameters

field ApplicationField

The gPRC message

22.275.3.2.2. Returns

Expression<Func<Application, object?>>

The that access the field from the object

22.275.3.2.3. Exceptions

ArgumentOutOfRangeException

the given message is not recognized