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)
109
while (attempts <
_maxCliAttempts
)
114
logger?.LogTrace("Attempt {Attempt} of {MaxAttempts} to create dev tunnel '{TunnelId}'", attempts,
_maxCliAttempts
, tunnelId);
184
logger?.LogError("Failed to create dev tunnel '{TunnelId}' (attempt {Attempt} of {MaxAttempts}). Exit code {ExitCode}: {Error}", tunnelId, attempts,
_maxCliAttempts
, exitCode, error);
185
if (attempts <
_maxCliAttempts
)
258
while (attempts <
_maxCliAttempts
)
263
logger?.LogTrace("Attempt {Attempt} of {MaxAttempts} to create port '{PortNumber}' on dev tunnel '{TunnelId}'", attempts,
_maxCliAttempts
, portNumber, tunnelId);
292
logger?.LogError("Failed to create port '{PortNumber}' for dev tunnel '{TunnelId}' (attempt {Attempt} of {MaxAttempts}). Exit code {ExitCode}: {Error}", portNumber, tunnelId, attempts,
_maxCliAttempts
, exitCode, error);
293
if (attempts <
_maxCliAttempts
)
312
catch (RetryableProvisioningException ex) when (attempt <
_maxCliAttempts
)
316
logger?.LogWarning(ex, "Dev tunnel provisioning failed (attempt {Attempt} of {MaxAttempts}); reconciling again.", attempt,
_maxCliAttempts
);
332
for (var attempt = 1; attempt <=
_maxCliAttempts
; attempt++)
345
if (attempt <
_maxCliAttempts
)
347
logger?.LogWarning("Failed to inspect {Resource} (attempt {Attempt} of {MaxAttempts}); retrying.", description, attempt,
_maxCliAttempts
);