53 references to InteractionServiceStrings
aspire (47)
Certificates\CertificateService.cs (2)
28$":locked_with_key: {InteractionServiceStrings.CheckingCertificates}", 50$":locked_with_key: {InteractionServiceStrings.TrustingCertificates}",
Commands\BaseCommand.cs (6)
63interactionService.DisplayError(InteractionServiceStrings.SpecifiedProjectFileNotAppHostProject); 68interactionService.DisplayError(InteractionServiceStrings.ProjectOptionDoesntExist); 73interactionService.DisplayError(InteractionServiceStrings.ProjectOptionNotSpecifiedMultipleAppHostsFound); 78interactionService.DisplayError(InteractionServiceStrings.ProjectOptionNotSpecifiedNoCsprojFound); 83interactionService.DisplayError(InteractionServiceStrings.UnbuildableAppHostsDetected); 87interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\ExecCommand.cs (3)
206InteractionService.DisplayMessage(emoji: "bug", InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 299InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message)); 305InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\PipelineCommandBase.cs (6)
186InteractionService.DisplayError(InteractionServiceStrings.ProjectCouldNotBeBuilt); 220InteractionService.DisplayMessage("bug", InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 298InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message)); 306InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.AppHostConnectionLost, ex.Message)); 314InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message)); 806options.Add(KeyValuePair.Create(CustomChoiceValue, InteractionServiceStrings.CustomChoiceLabel));
Commands\PublishCommand.cs (1)
82protected override string GetCanceledMessage() => InteractionServiceStrings.OperationCancelled;
Commands\RunCommand.cs (4)
179InteractionService.DisplayError(InteractionServiceStrings.ProjectCouldNotBeBuilt); 242var backchannel = await InteractionService.ShowStatusAsync(isExtensionHost ? InteractionServiceStrings.BuildingAppHost : RunCommandStrings.ConnectingToAppHost, async () => { return await backchannelCompletitionSource.Task.WaitAsync(cancellationToken); }); 383InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup())); 389InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
Interaction\ConsoleInteractionService.cs (14)
68throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 100throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 106throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 127throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 133throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 150DisplayError(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}"); 225DisplayMessage("stop_sign", $"[teal bold]{InteractionServiceStrings.StoppingAspire}[/]"); 232throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 254_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NewCliVersionAvailable, newerVersion)); 258_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ToUpdateRunCommand, updateCommand)); 261_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.MoreInfoNewCliVersion, UpdateUrl));
Projects\ProjectLocator.cs (8)
38return await interactionService.ShowStatusAsync(InteractionServiceStrings.SearchingProjects, async () => 50interactionService.DisplayMessage("magnifying_glass_tilted_left", InteractionServiceStrings.FindingAppHosts); 224var appHostProjects = await interactionService.ShowStatusAsync(InteractionServiceStrings.SearchingProjects, async () => 232interactionService.DisplayMessage("magnifying_glass_tilted_left", InteractionServiceStrings.FindingAppHosts); 311InteractionServiceStrings.SelectAppHostToUse, 403MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(InteractionServiceStrings.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName)})", cancellationToken), 436interactionService.DisplayMessage("file_cabinet", string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.CreatedSettingsFile, $"[bold]'{relativeSettingsFilePath}'[/]")); 443return await interactionService.ShowStatusAsync(InteractionServiceStrings.SearchingProjects, async () =>
Resources\InteractionServiceStrings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.InteractionServiceStrings", typeof(InteractionServiceStrings).Assembly);
Utils\AppHostHelper.cs (2)
60$":microscope: {InteractionServiceStrings.CheckingProjectType}: {relativePath}", 73$":hammer_and_wrench: {InteractionServiceStrings.BuildingAppHost} {relativePath}",
Aspire.Cli.Tests (6)
Commands\ExecCommandTests.cs (1)
137Assert.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)
237Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 252Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 267Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 281Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message);