42 references to DashboardCommandStrings
aspire (30)
Commands\DashboardCommand.cs (1)
18: base("dashboard", DashboardCommandStrings.Description, services)
Commands\DashboardRunCommand.cs (23)
30protected override string CancellationMessage => DashboardCommandStrings.StoppingDashboard; 40Description = DashboardCommandStrings.FrontendUrlOptionDescription 45Description = DashboardCommandStrings.OtlpGrpcUrlOptionDescription 50Description = DashboardCommandStrings.OtlpHttpUrlOptionDescription 59Description = DashboardCommandStrings.AllowAnonymousOptionDescription 64Description = DashboardCommandStrings.ApplicationNameOptionDescription 69Description = DashboardCommandStrings.PersistenceModeOptionDescription 74Description = DashboardCommandStrings.ConfigFilePathOptionDescription 84: base("run", DashboardCommandStrings.RunDescription, services) 108return CommandResult.Failure(CliExitCodes.DashboardFailure, DashboardCommandStrings.BundleLayoutNotFound); 114return CommandResult.Failure(CliExitCodes.DashboardFailure, DashboardCommandStrings.ManagedBinaryNotFound); 177DashboardCommandStrings.EnsuringDashboardBundle, 341DashboardExitCodes.UnexpectedError => DashboardCommandStrings.DashboardExitedUnexpectedError, 342DashboardExitCodes.ValidationFailure => DashboardCommandStrings.DashboardExitedValidationFailure, 343DashboardExitCodes.AddressInUse => DashboardCommandStrings.DashboardExitedAddressInUse, 344_ => string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardExitedWithError, exitCode), 355var dashboardLabel = DashboardCommandStrings.DashboardLabel; 356var otlpGrpcLabel = DashboardCommandStrings.OtlpGrpcLabel; 357var otlpHttpLabel = DashboardCommandStrings.OtlpHttpLabel; 358var logsLabel = DashboardCommandStrings.LogsLabel; 427InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardFailedToStart, ex.Message)); 438DashboardCommandStrings.StartingDashboard, 485: 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)
31System.Resources.ResourceManager temp = new 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], 465var expectedMessage = string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardFailedToStart, $"Failed to start process: {dashboardPath}"); 480var 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);