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)
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 (6)
186
InteractionService.DisplayError(
InteractionServiceStrings
.ProjectCouldNotBeBuilt);
220
InteractionService.DisplayMessage("bug",
InteractionServiceStrings
.WaitingForDebuggerToAttachToAppHost);
298
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ErrorConnectingToAppHost, ex.Message));
306
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.AppHostConnectionLost, ex.Message));
314
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message));
806
options.Add(KeyValuePair.Create(CustomChoiceValue,
InteractionServiceStrings
.CustomChoiceLabel));
Commands\PublishCommand.cs (1)
82
protected override string GetCanceledMessage() =>
InteractionServiceStrings
.OperationCancelled;
Commands\RunCommand.cs (4)
179
InteractionService.DisplayError(
InteractionServiceStrings
.ProjectCouldNotBeBuilt);
242
var backchannel = await InteractionService.ShowStatusAsync(isExtensionHost ?
InteractionServiceStrings
.BuildingAppHost : RunCommandStrings.ConnectingToAppHost, async () => { return await backchannelCompletitionSource.Task.WaitAsync(cancellationToken); });
383
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()));
389
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}");
225
DisplayMessage("stop_sign", $"[teal bold]{
InteractionServiceStrings
.StoppingAspire}[/]");
232
throw 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)
38
return await interactionService.ShowStatusAsync(
InteractionServiceStrings
.SearchingProjects, async () =>
50
interactionService.DisplayMessage("magnifying_glass_tilted_left",
InteractionServiceStrings
.FindingAppHosts);
224
var appHostProjects = await interactionService.ShowStatusAsync(
InteractionServiceStrings
.SearchingProjects, async () =>
232
interactionService.DisplayMessage("magnifying_glass_tilted_left",
InteractionServiceStrings
.FindingAppHosts);
311
InteractionServiceStrings
.SelectAppHostToUse,
403
MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(
InteractionServiceStrings
.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName)})", cancellationToken),
436
interactionService.DisplayMessage("file_cabinet", string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.CreatedSettingsFile, $"[bold]'{relativeSettingsFilePath}'[/]"));
443
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)
60
$":microscope: {
InteractionServiceStrings
.CheckingProjectType}: {relativePath}",
73
$":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);