21.276. Class RpcExt

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

public static class RpcExt

21.276.1. Inheritance

objectRpcExt

21.276.2. Inherited Members

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

21.276.3. Methods

21.276.3.1. ForceMoveNext<T>(IAsyncEnumerator<T>, string, ILogger, CancellationToken)

public static Task ForceMoveNext<T>(this IAsyncEnumerator<T> stream, string error, ILogger logger, CancellationToken cancellationToken) where T : class

21.276.3.1.1. Parameters

stream IAsyncEnumerator<T>

error string

logger ILogger

cancellationToken CancellationToken

21.276.3.1.2. Returns

Task

21.276.3.1.3. Type Parameters

T

21.276.3.2. HandleExceptions(Exception, StatusCode)

public static bool HandleExceptions(Exception e, StatusCode status)

21.276.3.2.1. Parameters

e Exception

status StatusCode

21.276.3.2.2. Returns

bool

21.276.3.3. ThrowIfError(Status)

public static void ThrowIfError(this Status status)

21.276.3.3.1. Parameters

status Status

21.276.3.4. ToPrintableId(TaskId)

public static string ToPrintableId(this TaskId taskId)

21.276.3.4.1. Parameters

taskId TaskId

21.276.3.4.2. Returns

string

21.276.3.5. WrapRpcException<TMessage>(AsyncUnaryCall<TMessage>)

public static Task<TMessage> WrapRpcException<TMessage>(this AsyncUnaryCall<TMessage> asyncUnaryCall)

21.276.3.5.1. Parameters

asyncUnaryCall AsyncUnaryCall<TMessage>

21.276.3.5.2. Returns

Task<TMessage>

21.276.3.5.3. Type Parameters

TMessage