26.267. Class SessionTableExt
Namespace: ArmoniK.Core.Common.gRPC.Convertors
Assembly: ArmoniK.Core.Common.dll
Provides extension methods for the
public static class SessionTableExt
26.267.1. Inheritance
26.267.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
26.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.
26.267.4. Methods
26.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)
26.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
26.267.4.1.2. Returns
Collection of sessions that matched the filter