Gets or sets the maximum number of invocation attempts, including the initial attempt.
public int MaxAttempts { get; set; }
Must be at least 1. Values below 1 are rejected by CliInvoke.Extensions.Middleware.Retry.RetryMiddleware.