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