42 references to DashboardCommandStrings
aspire (30)
Commands\DashboardCommand.cs (1)
18
: base("dashboard",
DashboardCommandStrings
.Description, services)
Commands\DashboardRunCommand.cs (23)
31
protected override string CancellationMessage =>
DashboardCommandStrings
.StoppingDashboard;
41
Description =
DashboardCommandStrings
.FrontendUrlOptionDescription
46
Description =
DashboardCommandStrings
.OtlpGrpcUrlOptionDescription
51
Description =
DashboardCommandStrings
.OtlpHttpUrlOptionDescription
60
Description =
DashboardCommandStrings
.AllowAnonymousOptionDescription
65
Description =
DashboardCommandStrings
.ApplicationNameOptionDescription
70
Description =
DashboardCommandStrings
.PersistenceModeOptionDescription
75
Description =
DashboardCommandStrings
.ConfigFilePathOptionDescription
85
: base("run",
DashboardCommandStrings
.RunDescription, services)
109
return CommandResult.Failure(CliExitCodes.DashboardFailure,
DashboardCommandStrings
.BundleLayoutNotFound);
115
return CommandResult.Failure(CliExitCodes.DashboardFailure,
DashboardCommandStrings
.ManagedBinaryNotFound);
179
DashboardCommandStrings
.EnsuringDashboardBundle,
343
DashboardExitCodes.UnexpectedError =>
DashboardCommandStrings
.DashboardExitedUnexpectedError,
344
DashboardExitCodes.ValidationFailure =>
DashboardCommandStrings
.DashboardExitedValidationFailure,
345
DashboardExitCodes.AddressInUse =>
DashboardCommandStrings
.DashboardExitedAddressInUse,
346
_ => string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardExitedWithError, exitCode),
357
var dashboardLabel =
DashboardCommandStrings
.DashboardLabel;
358
var otlpGrpcLabel =
DashboardCommandStrings
.OtlpGrpcLabel;
359
var otlpHttpLabel =
DashboardCommandStrings
.OtlpHttpLabel;
360
var logsLabel =
DashboardCommandStrings
.LogsLabel;
429
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardFailedToStart, ex.Message));
440
DashboardCommandStrings
.StartingDashboard,
487
:
DashboardCommandStrings
.DashboardStartTimedOut;
Profiling\ProfileCaptureService.cs (5)
78
throw new InvalidOperationException(
DashboardCommandStrings
.ManagedBinaryNotFound);
124
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardFailedToStart, ex.Message), ex);
284
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardExitedWithError, exitCode));
302
throw new TimeoutException(
DashboardCommandStrings
.DashboardStartTimedOut);
317
throw new TimeoutException(
DashboardCommandStrings
.DashboardStartTimedOut);
Resources\DashboardCommandStrings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.DashboardCommandStrings", typeof(
DashboardCommandStrings
).Assembly);
Aspire.Cli.Tests (12)
Commands\DashboardRunCommandTests.cs (8)
45
Assert.Equal(
DashboardCommandStrings
.BundleLayoutNotFound, errorMessage);
208
Assert.Equal(
DashboardCommandStrings
.ManagedBinaryNotFound, Assert.Single(testInteractionService.DisplayedErrors));
227
Assert.Equal([
DashboardCommandStrings
.StartingDashboard], testInteractionService.ShownStatuses);
241
if (status ==
DashboardCommandStrings
.EnsuringDashboardBundle)
264
[
DashboardCommandStrings
.EnsuringDashboardBundle,
DashboardCommandStrings
.StartingDashboard],
466
var expectedMessage = string.Format(CultureInfo.CurrentCulture,
DashboardCommandStrings
.DashboardFailedToStart, $"Failed to start process: {dashboardPath}");
481
var expectedMessage =
DashboardCommandStrings
.StoppingDashboard;
ProfileCaptureServiceTests.cs (4)
141
Assert.Equal(
DashboardCommandStrings
.ManagedBinaryNotFound, exception.Message);
192
Assert.Equal(
DashboardCommandStrings
.ManagedBinaryNotFound, exception.Message);
272
Assert.Equal(
DashboardCommandStrings
.DashboardStartTimedOut, exception.Message);
335
Assert.Equal(
DashboardCommandStrings
.DashboardStartTimedOut, exception.Message);