52 references to InteractionServiceStrings
aspire (46)
Certificates\CertificateService.cs (2)
28
$":locked_with_key: {
InteractionServiceStrings
.CheckingCertificates}",
50
$":locked_with_key: {
InteractionServiceStrings
.TrustingCertificates}",
Commands\BaseCommand.cs (6)
63
interactionService.DisplayError(
InteractionServiceStrings
.SpecifiedProjectFileNotAppHostProject);
68
interactionService.DisplayError(
InteractionServiceStrings
.ProjectOptionDoesntExist);
73
interactionService.DisplayError(
InteractionServiceStrings
.ProjectOptionNotSpecifiedMultipleAppHostsFound);
78
interactionService.DisplayError(
InteractionServiceStrings
.ProjectOptionNotSpecifiedNoCsprojFound);
83
interactionService.DisplayError(
InteractionServiceStrings
.UnbuildableAppHostsDetected);
87
interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message));
Commands\ExecCommand.cs (3)
206
InteractionService.DisplayMessage(emoji: "bug",
InteractionServiceStrings
.WaitingForDebuggerToAttachToAppHost);
299
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ErrorConnectingToAppHost, ex.Message));
305
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message));
Commands\PipelineCommandBase.cs (5)
182
InteractionService.DisplayError(
InteractionServiceStrings
.ProjectCouldNotBeBuilt);
216
InteractionService.DisplayMessage("bug",
InteractionServiceStrings
.WaitingForDebuggerToAttachToAppHost);
283
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ErrorConnectingToAppHost, ex.Message));
291
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message));
783
options.Add(KeyValuePair.Create(CustomChoiceValue,
InteractionServiceStrings
.CustomChoiceLabel));
Commands\PublishCommand.cs (1)
82
protected override string GetCanceledMessage() =>
InteractionServiceStrings
.OperationCancelled;
Commands\RunCommand.cs (4)
158
InteractionService.DisplayError(
InteractionServiceStrings
.ProjectCouldNotBeBuilt);
221
var backchannel = await InteractionService.ShowStatusAsync(isExtensionHost ?
InteractionServiceStrings
.BuildingAppHost : RunCommandStrings.ConnectingToAppHost, async () => { return await backchannelCompletitionSource.Task.WaitAsync(cancellationToken); });
362
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()));
368
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
Interaction\ConsoleInteractionService.cs (14)
68
throw new InvalidOperationException(
InteractionServiceStrings
.InteractiveInputNotSupported);
100
throw new InvalidOperationException(
InteractionServiceStrings
.InteractiveInputNotSupported);
106
throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.NoItemsAvailableForSelection, promptText));
127
throw new InvalidOperationException(
InteractionServiceStrings
.InteractiveInputNotSupported);
133
throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.NoItemsAvailableForSelection, promptText));
150
DisplayError(
InteractionServiceStrings
.AppHostNotCompatibleConsiderUpgrading);
153
$"\t[bold]{
InteractionServiceStrings
.AspireHostingSDKVersion}[/]: {appHostHostingVersion}");
154
_ansiConsole.MarkupLine($"\t[bold]{
InteractionServiceStrings
.AspireCLIVersion}[/]: {cliInformationalVersion}");
155
_ansiConsole.MarkupLine($"\t[bold]{
InteractionServiceStrings
.RequiredCapability}[/]: {ex.RequiredCapability}");
220
DisplayMessage("stop_sign", $"[teal bold]{
InteractionServiceStrings
.StoppingAspire}[/]");
227
throw new InvalidOperationException(
InteractionServiceStrings
.InteractiveInputNotSupported);
249
_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.NewCliVersionAvailable, newerVersion));
253
_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ToUpdateRunCommand, updateCommand));
256
_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.MoreInfoNewCliVersion, UpdateUrl));
Projects\ProjectLocator.cs (8)
37
return await interactionService.ShowStatusAsync(
InteractionServiceStrings
.SearchingProjects, async () =>
49
interactionService.DisplayMessage("magnifying_glass_tilted_left",
InteractionServiceStrings
.FindingAppHosts);
223
var appHostProjects = await interactionService.ShowStatusAsync(
InteractionServiceStrings
.SearchingProjects, async () =>
231
interactionService.DisplayMessage("magnifying_glass_tilted_left",
InteractionServiceStrings
.FindingAppHosts);
310
InteractionServiceStrings
.SelectAppHostToUse,
402
MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(
InteractionServiceStrings
.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName)})", cancellationToken),
435
interactionService.DisplayMessage("file_cabinet", string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.CreatedSettingsFile, $"[bold]'{relativeSettingsFilePath}'[/]"));
442
return await interactionService.ShowStatusAsync(
InteractionServiceStrings
.SearchingProjects, async () =>
Resources\InteractionServiceStrings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.InteractionServiceStrings", typeof(
InteractionServiceStrings
).Assembly);
Utils\AppHostHelper.cs (2)
58
$":microscope: {
InteractionServiceStrings
.CheckingProjectType}: {relativePath}",
71
$":hammer_and_wrench: {
InteractionServiceStrings
.BuildingAppHost} {relativePath}",
Aspire.Cli.Tests (6)
Commands\ExecCommandTests.cs (1)
137
Assert.DoesNotContain(testOutputWriter.Logs, x => x.Contains(
InteractionServiceStrings
.FindingAppHosts));
Commands\RunCommandTests.cs (1)
411
$"{
InteractionServiceStrings
.BuildingAppHost} src{Path.DirectorySeparatorChar}MyApp.AppHost{Path.DirectorySeparatorChar}MyApp.AppHost.csproj",
Interaction\ConsoleInteractionServiceTests.cs (4)
237
Assert.Contains(
InteractionServiceStrings
.InteractiveInputNotSupported, exception.Message);
252
Assert.Contains(
InteractionServiceStrings
.InteractiveInputNotSupported, exception.Message);
267
Assert.Contains(
InteractionServiceStrings
.InteractiveInputNotSupported, exception.Message);
281
Assert.Contains(
InteractionServiceStrings
.InteractiveInputNotSupported, exception.Message);