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