1 write to _maxCliAttempts
Aspire.Hosting.DevTunnels (1)
DevTunnelCliClient.cs (1)
29_maxCliAttempts = configuration.GetValue<int?>("ASPIRE_DEVTUNNEL_CLI_MAX_ATTEMPTS") ?? 3;
13 references to _maxCliAttempts
Aspire.Hosting.DevTunnels (13)
DevTunnelCliClient.cs (13)
109while (attempts < _maxCliAttempts) 114logger?.LogTrace("Attempt {Attempt} of {MaxAttempts} to create dev tunnel '{TunnelId}'", attempts, _maxCliAttempts, tunnelId); 184logger?.LogError("Failed to create dev tunnel '{TunnelId}' (attempt {Attempt} of {MaxAttempts}). Exit code {ExitCode}: {Error}", tunnelId, attempts, _maxCliAttempts, exitCode, error); 185if (attempts < _maxCliAttempts) 258while (attempts < _maxCliAttempts) 263logger?.LogTrace("Attempt {Attempt} of {MaxAttempts} to create port '{PortNumber}' on dev tunnel '{TunnelId}'", attempts, _maxCliAttempts, portNumber, tunnelId); 292logger?.LogError("Failed to create port '{PortNumber}' for dev tunnel '{TunnelId}' (attempt {Attempt} of {MaxAttempts}). Exit code {ExitCode}: {Error}", portNumber, tunnelId, attempts, _maxCliAttempts, exitCode, error); 293if (attempts < _maxCliAttempts) 312catch (RetryableProvisioningException ex) when (attempt < _maxCliAttempts) 316logger?.LogWarning(ex, "Dev tunnel provisioning failed (attempt {Attempt} of {MaxAttempts}); reconciling again.", attempt, _maxCliAttempts); 332for (var attempt = 1; attempt <= _maxCliAttempts; attempt++) 345if (attempt < _maxCliAttempts) 347logger?.LogWarning("Failed to inspect {Resource} (attempt {Attempt} of {MaxAttempts}); retrying.", description, attempt, _maxCliAttempts);