38 references to StopCommandStrings
aspire (25)
Commands\StopCommand.cs (24)
41
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project",
StopCommandStrings
.ProjectArgumentDescription);
45
Description =
StopCommandStrings
.AllOptionDescription
50
Description =
StopCommandStrings
.ForceOptionDescription
66
: base("stop",
StopCommandStrings
.Description, services)
95
return CommandResult.Failure(CompleteStopActivity(activity, CliExitCodes.FailedToFindProject), string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.AllAndProjectMutuallyExclusive, s_allOption.Name, s_appHostOption.Name));
100
return CommandResult.Failure(CompleteStopActivity(activity, CliExitCodes.InvalidCommand), string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.AllAndProjectMutuallyExclusive, s_allOption.Name, s_forceOption.Name));
143
InteractionService.DisplayError(
StopCommandStrings
.CouldNotDetermineAppHostPath);
248
InteractionService.DisplayError(string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.MultipleAppHostsNonInteractive, s_appHostOption.Name, s_allOption.Name));
266
string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.SelectAppHost,
StopCommandStrings
.SelectAppHostAction),
344
string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.CleaningPersistentResources, appHostDisplayPath),
352
InteractionService.DisplayError(
StopCommandStrings
.DcpCleanupUnavailable);
359
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.DcpCleanupFailed, appHostDisplayPath, details));
363
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.PersistentResourcesCleaned, appHostDisplayPath));
382
InteractionService.DisplayMessage(KnownEmojis.Warning,
StopCommandStrings
.DcpCleanupCompatibilityCheckFailed);
388
InteractionService.DisplayMessage(KnownEmojis.Warning,
StopCommandStrings
.DcpCleanupCompatibilityCheckFailed);
398
?
StopCommandStrings
.UnknownAspireHostingVersion
402
StopCommandStrings
.DcpCleanupUnsupportedAppHostVersion,
489
InteractionService.DisplayMessage(KnownEmojis.Package, string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.FoundRunningAppHost, appHostIdentifier));
492
InteractionService.DisplayMessage(KnownEmojis.StopSign, string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.SendingStopSignal, appHostIdentifier));
495
string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.StoppingAppHost, appHostIdentifier),
509
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.AppHostStoppedSuccessfully, appHostIdentifier));
514
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.FailedToStopAppHost, appHostIdentifier));
564
? string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.DcpCleanupExitCode, cleanupResult.ExitCode)
578
? 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 (13)
Commands\StopCommandTests.cs (13)
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));
499
Assert.Contains(interactionService.DisplayedSuccess, message => message == string.Format(CultureInfo.CurrentCulture,
StopCommandStrings
.PersistentResourcesCleaned, appHostFile.Name));
581
StopCommandStrings
.AppHostStoppedSuccessfully,
1080
Assert.Contains(
StopCommandStrings
.DcpCleanupUnavailable, interactionService.DisplayedErrors);
1116
Assert.Contains(
StopCommandStrings
.CouldNotDetermineAppHostPath, interactionService.DisplayedErrors);
1175
string.Format(CultureInfo.InvariantCulture,
StopCommandStrings
.AllAndProjectMutuallyExclusive, "--all", "--force"),