42 references to StopCommandStrings
aspire (28)
Commands\StopCommand.cs (27)
44
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project",
StopCommandStrings
.ProjectArgumentDescription);
48
Description =
StopCommandStrings
.AllOptionDescription
53
Description =
StopCommandStrings
.ForceOptionDescription
58
Description =
StopCommandStrings
.VolumesOptionDescription
74
: base("stop",
StopCommandStrings
.Description, services)
105
return CommandResult.Failure(CompleteStopActivity(activity, CliExitCodes.FailedToFindProject), string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.AllAndProjectMutuallyExclusive, s_allOption.Name, s_appHostOption.Name));
110
return CommandResult.Failure(CompleteStopActivity(activity, CliExitCodes.InvalidCommand), string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.AllAndProjectMutuallyExclusive, s_allOption.Name, s_forceOption.Name));
115
return CommandResult.Failure(CompleteStopActivity(activity, CliExitCodes.InvalidCommand), string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.VolumesRequiresForce, s_volumesOption.Name, s_forceOption.Name));
158
InteractionService.DisplayError(
StopCommandStrings
.CouldNotDetermineAppHostPath);
263
InteractionService.DisplayError(string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.MultipleAppHostsNonInteractive, s_appHostOption.Name, s_allOption.Name));
281
string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost,
StopCommandStrings
.SelectAppHostAction),
359
string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.CleaningPersistentResources, appHostDisplayPath),
367
InteractionService.DisplayError(
StopCommandStrings
.DcpCleanupUnavailable);
374
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.DcpCleanupFailed, appHostDisplayPath, details));
378
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.PersistentResourcesCleaned, appHostDisplayPath));
397
InteractionService.DisplayMessage(KnownEmojis.Warning,
StopCommandStrings
.DcpCleanupCompatibilityCheckFailed);
403
InteractionService.DisplayMessage(KnownEmojis.Warning,
StopCommandStrings
.DcpCleanupCompatibilityCheckFailed);
420
?
StopCommandStrings
.UnknownAspireHostingVersion
423
?
StopCommandStrings
.DcpVolumeCleanupUnsupportedAppHostVersion
424
:
StopCommandStrings
.DcpCleanupUnsupportedAppHostVersion;
517
InteractionService.DisplayMessage(KnownEmojis.Package, string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.FoundRunningAppHost, appHostIdentifier));
520
InteractionService.DisplayMessage(KnownEmojis.StopSign, string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.SendingStopSignal, appHostIdentifier));
523
string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.StoppingAppHost, appHostIdentifier),
537
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.AppHostStoppedSuccessfully, appHostIdentifier));
542
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.FailedToStopAppHost, appHostIdentifier));
592
? string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.DcpCleanupExitCode, cleanupResult.ExitCode)
606
? string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.AppHostIdentifierWithProcessId, displayPath, appHostInfo.ProcessId)
Resources\StopCommandStrings.Designer.cs (1)
31
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aspire.Cli.Resources.StopCommandStrings", typeof(
StopCommandStrings
).Assembly);
Aspire.Cli.Tests (14)
Commands\StopCommandTests.cs (14)
181
var expectedIdentifier1 = string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.AppHostIdentifierWithProcessId, expectedPath, processId1);
182
var expectedIdentifier2 = string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.AppHostIdentifierWithProcessId, expectedPath, processId2);
217
Assert.Contains(statusMessages, message => message == string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.StoppingAppHost, expectedPath));
218
Assert.Contains(interactionService.DisplayedSuccess, message => message == string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.AppHostStoppedSuccessfully, expectedPath));
269
Assert.Contains(statusMessages, message => message == string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.StoppingAppHost, expectedPath));
385
message => Assert.Equal(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.FoundRunningAppHost, appHostPath), message),
386
message => Assert.Equal(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.SendingStopSignal, appHostPath), message));
387
Assert.Contains(statusMessages, message => message == string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.StoppingAppHost, appHostPath));
502
Assert.Contains(interactionService.DisplayedSuccess, message => message == string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.PersistentResourcesCleaned, appHostFile.Name));
584
StopCommandStrings
.AppHostStoppedSuccessfully,
1089
Assert.Contains(
StopCommandStrings
.DcpCleanupUnavailable, interactionService.DisplayedErrors);
1125
Assert.Contains(
StopCommandStrings
.CouldNotDetermineAppHostPath, interactionService.DisplayedErrors);
1184
string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.AllAndProjectMutuallyExclusive, "--all", "--force"),
1206
string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.VolumesRequiresForce, "--volumes", "--force"),