21.139. Class GrpcChannelExt

Namespace: ArmoniK.Core.Common.Client
Assembly: ArmoniK.Core.Common.Client.dll

public static class GrpcChannelExt

21.139.1. Inheritance

objectGrpcChannelExt

21.139.2. Inherited Members

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

21.139.3. Methods

21.139.3.1. ComputeThroughput(ChannelBase, string, CancellationToken)

public static Task<SessionStats> ComputeThroughput(this ChannelBase channel, string sessionId, CancellationToken cancellationToken = default)

21.139.3.1.1. Parameters

channel ChannelBase

sessionId string

cancellationToken CancellationToken

21.139.3.1.2. Returns

Task<SessionStats>

21.139.3.2. ListTasksAsync(ChannelBase, Filters, Sort, int)

public static IAsyncEnumerable<TaskDetailed> ListTasksAsync(this ChannelBase channel, Filters filters, ListTasksRequest.Types.Sort sort, int pageSize = 50)

21.139.3.2.1. Parameters

channel ChannelBase

filters Filters

sort ListTasksRequest.Types.Sort

pageSize int

21.139.3.2.2. Returns

IAsyncEnumerable<TaskDetailed>

21.139.3.3. LogStatsFromSessionAsync(ChannelBase, string, ILogger)

public static Task LogStatsFromSessionAsync(this ChannelBase channel, string sessionId, ILogger logger)

21.139.3.3.1. Parameters

channel ChannelBase

sessionId string

logger ILogger

21.139.3.3.2. Returns

Task