21.267. Class SessionTableExt

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

Provides extension methods for the interface to support gRPC operations.

public static class SessionTableExt

21.267.1. Inheritance

objectSessionTableExt

21.267.2. Inherited Members

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

21.267.3. Remarks

This static class provides methods that bridge between the internal session table operations and the gRPC API, particularly for filtering and listing sessions based on gRPC request parameters.

21.267.4. Methods

21.267.4.1. ListSessionsAsync(ISessionTable, SessionFilter, CancellationToken)

List all sessions matching a given filter

public static IAsyncEnumerable<string> ListSessionsAsync(this ISessionTable sessionTable, SessionFilter sessionFilter, CancellationToken cancellationToken = default)

21.267.4.1.1. Parameters

sessionTable ISessionTable

Interface to manage sessions lifecycle

sessionFilter SessionFilter

Session filter describing the sessions to be listed

cancellationToken CancellationToken

Token used to cancel the execution of the method

21.267.4.1.2. Returns

IAsyncEnumerable<string>

Collection of sessions that matched the filter