38 references to DashboardCommandStrings
aspire (28)
Commands\DashboardCommand.cs (1)
18
: base("dashboard",
DashboardCommandStrings
.Description, services)
Commands\DashboardRunCommand.cs (21)
30
protected override string CancellationMessage =>
DashboardCommandStrings
.StoppingDashboard;
40
Description =
DashboardCommandStrings
.FrontendUrlOptionDescription
45
Description =
DashboardCommandStrings
.OtlpGrpcUrlOptionDescription
50
Description =
DashboardCommandStrings
.OtlpHttpUrlOptionDescription
59
Description =
DashboardCommandStrings
.AllowAnonymousOptionDescription
64
Description =
DashboardCommandStrings
.ConfigFilePathOptionDescription
74
: base("run",
DashboardCommandStrings
.RunDescription, services)
96
return CommandResult.Failure(CliExitCodes.DashboardFailure,
DashboardCommandStrings
.BundleLayoutNotFound);
102
return CommandResult.Failure(CliExitCodes.DashboardFailure,
DashboardCommandStrings
.ManagedBinaryNotFound);
160
DashboardCommandStrings
.EnsuringDashboardBundle,
322
DashboardExitCodes.UnexpectedError =>
DashboardCommandStrings
.DashboardExitedUnexpectedError,
323
DashboardExitCodes.ValidationFailure =>
DashboardCommandStrings
.DashboardExitedValidationFailure,
324
DashboardExitCodes.AddressInUse =>
DashboardCommandStrings
.DashboardExitedAddressInUse,
325
_ => string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardExitedWithError, exitCode),
336
var dashboardLabel =
DashboardCommandStrings
.DashboardLabel;
337
var otlpGrpcLabel =
DashboardCommandStrings
.OtlpGrpcLabel;
338
var otlpHttpLabel =
DashboardCommandStrings
.OtlpHttpLabel;
339
var logsLabel =
DashboardCommandStrings
.LogsLabel;
408
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardFailedToStart, ex.Message));
419
DashboardCommandStrings
.StartingDashboard,
466
:
DashboardCommandStrings
.DashboardStartTimedOut;
Profiling\ProfileCaptureService.cs (5)
79
throw new InvalidOperationException(
DashboardCommandStrings
.ManagedBinaryNotFound);
120
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardFailedToStart, ex.Message), ex);
281
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardExitedWithError, exitCode));
299
throw new TimeoutException(
DashboardCommandStrings
.DashboardStartTimedOut);
314
throw new TimeoutException(
DashboardCommandStrings
.DashboardStartTimedOut);
Resources\DashboardCommandStrings.Designer.cs (1)
31
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aspire.Cli.Resources.DashboardCommandStrings", typeof(
DashboardCommandStrings
).Assembly);
Aspire.Cli.Tests (10)
Commands\DashboardRunCommandTests.cs (7)
45
Assert.Equal(
DashboardCommandStrings
.BundleLayoutNotFound, errorMessage);
165
Assert.Equal([
DashboardCommandStrings
.StartingDashboard], testInteractionService.ShownStatuses);
179
if (status ==
DashboardCommandStrings
.EnsuringDashboardBundle)
202
[
DashboardCommandStrings
.EnsuringDashboardBundle,
DashboardCommandStrings
.StartingDashboard],
381
var expectedMessage = string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardFailedToStart, $"Failed to start process: {managedPath}");
396
var expectedMessage =
DashboardCommandStrings
.StoppingDashboard;
ProfileCaptureServiceTests.cs (3)
128
Assert.Equal(
DashboardCommandStrings
.ManagedBinaryNotFound, exception.Message);
208
Assert.Equal(
DashboardCommandStrings
.DashboardStartTimedOut, exception.Message);
271
Assert.Equal(
DashboardCommandStrings
.DashboardStartTimedOut, exception.Message);