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

22.263.1. Inheritance

objectSessionTableExt

22.263.2. Inherited Members

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

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

22.263.4. Methods

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

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

22.263.4.1.2. Returns

IAsyncEnumerable<string>

Collection of sessions that matched the filter