17.276. Class RpcExt

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

public static class RpcExt

17.276.1. Inheritance

objectRpcExt

17.276.2. Inherited Members

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

17.276.3. Methods

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

17.276.3.1.1. Parameters

stream IAsyncEnumerator<T>

error string

logger ILogger

cancellationToken CancellationToken

17.276.3.1.2. Returns

Task

17.276.3.1.3. Type Parameters

T

17.276.3.2. HandleExceptions(Exception, StatusCode)

public static bool HandleExceptions(Exception e, StatusCode status)

17.276.3.2.1. Parameters

e Exception

status StatusCode

17.276.3.2.2. Returns

bool

17.276.3.3. ThrowIfError(Status)

public static void ThrowIfError(this Status status)

17.276.3.3.1. Parameters

status Status

17.276.3.4. ToPrintableId(TaskId)

public static string ToPrintableId(this TaskId taskId)

17.276.3.4.1. Parameters

taskId TaskId

17.276.3.4.2. Returns

string

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

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

17.276.3.5.1. Parameters

asyncUnaryCall AsyncUnaryCall<TMessage>

17.276.3.5.2. Returns

Task<TMessage>

17.276.3.5.3. Type Parameters

TMessage