Ejemplo n.º 1
0
 /// <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;
Ejemplo n.º 2
0
 public RpcFailure(RpcFailureType type, string message)
 {
     Type    = type;
     Message = message;
 }