6 implementations of DisplayError
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
119
public void
DisplayError
(string errorMessage)
Interaction\ExtensionInteractionService.cs (1)
177
public void
DisplayError
(string errorMessage)
Aspire.Cli.Tests (4)
Commands\NewCommandTests.cs (1)
663
public void
DisplayError
(string errorMessage) { }
Commands\PublishCommandPromptingIntegrationTests.cs (1)
837
public void
DisplayError
(string errorMessage) => DisplayedErrors.Add(errorMessage);
TestServices\TestConsoleInteractionService.cs (1)
49
public void
DisplayError
(string errorMessage)
TestServices\TestExtensionInteractionService.cs (1)
54
public void
DisplayError
(string errorMessage)
53 references to DisplayError
aspire (53)
Commands\AddCommand.cs (4)
126
InteractionService.
DisplayError
(AddCommandStrings.NoPackagesFound);
178
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, addPackageResult));
198
InteractionService.
DisplayError
(ex.Message);
204
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.ErrorOccurredWhileAddingPackage, ex.Message));
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\CacheCommand.cs (1)
97
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, CacheCommandStrings.CacheClearFailed, ex.Message));
Commands\ConfigCommand.cs (9)
88
InteractionService.
DisplayError
(ErrorStrings.ConfigurationKeyRequired);
112
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
152
InteractionService.
DisplayError
(ErrorStrings.ConfigurationKeyRequired);
158
InteractionService.
DisplayError
(ErrorStrings.ConfigurationValueRequired);
193
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorSettingConfiguration, ex.Message));
262
InteractionService.
DisplayError
(ErrorStrings.ConfigurationKeyRequired);
276
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
310
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
316
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorDeletingConfiguration, ex.Message));
Commands\ExecCommand.cs (9)
100
InteractionService.
DisplayError
(ExecCommandStrings.TargetResourceNotSpecified);
108
InteractionService.
DisplayError
(ExecCommandStrings.NoCommandSpecified);
116
InteractionService.
DisplayError
(ExecCommandStrings.FailedToParseCommand);
142
InteractionService.
DisplayError
(ErrorStrings.CommandNotSupportedWithSingleFileAppHost);
255
InteractionService.
DisplayError
(RunCommandStrings.ProjectCouldNotBeRun);
266
InteractionService.
DisplayError
(RunCommandStrings.ProjectCouldNotBeRun);
288
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
293
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
299
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\PublishCommandBase.cs (6)
110
InteractionService.
DisplayError
(ErrorStrings.SingleFileAppHostFeatureNotEnabled);
150
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
219
InteractionService.
DisplayError
(GetCanceledMessage());
235
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
241
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
555
InteractionService.
DisplayError
(error);
Commands\RunCommand.cs (6)
127
InteractionService.
DisplayError
(ErrorStrings.SingleFileAppHostFeatureNotEnabled);
165
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
237
InteractionService.
DisplayError
(RunCommandStrings.DashboardFailedToStart);
357
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message.EscapeMarkup()));
362
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()));
368
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
Commands\UpdateCommand.cs (2)
44
InteractionService.
DisplayError
(ErrorStrings.CommandNotSupportedWithSingleFileAppHost);
57
InteractionService.
DisplayError
(message);
Templating\DotNetTemplateFactory.cs (5)
277
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, templateInstallResult.ExitCode));
311
interactionService.
DisplayError
(TemplatingStrings.ProjectAlreadyExists);
316
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, newProjectExitCode));
337
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
342
interactionService.
DisplayError
(ex.Message);
Utils\AppHostHelper.cs (4)
22
interactionService.
DisplayError
(ErrorStrings.ProjectCouldNotBeAnalyzed);
28
interactionService.
DisplayError
(ErrorStrings.ProjectIsNotAppHost);
34
interactionService.
DisplayError
(ErrorStrings.CouldNotParseAspireSDKVersion);
41
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\SdkInstallHelper.cs (1)
41
interactionService.
DisplayError
(sdkErrorMessage);