/// <summary> /// Returns true, iff this failure type indicates that the failed command can be /// tried again, because there is a chance that it will work the next time. /// See the documentation of the <see cref="RpcFailureType"/> items. /// </summary> public static bool IsRetryable(this RpcFailureType type) => type == RpcFailureType.Timeout || type == RpcFailureType.RpcError;
public RpcFailure(RpcFailureType type, string message) { Type = type; Message = message; }