1 write to _interactionService
aspire (1)
Templating\CliTemplateFactory.cs (1)
93
_interactionService
= interactionService;
38 references to _interactionService
aspire (38)
Templating\CliTemplateFactory.cs (5)
253
var isExtensionHost = ExtensionHelper.IsExtensionHost(
_interactionService
, out _, out _);
255
_interactionService
,
271
_interactionService
);
389
_interactionService
.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, TemplatingStrings.RunCdThenAspireRun, relativePath));
393
_interactionService
.DisplayMessage(KnownEmojis.Information, TemplatingStrings.RunAspireRun);
Templating\CliTemplateFactory.EmptyTemplate.cs (7)
19
_interactionService
.DisplayError("Language selection is required.");
26
_interactionService
.DisplayError($"Unknown language: '{languageId}'");
65
templateResult = await
_interactionService
.ShowStatusAsync(
121
_interactionService
.DisplayError($"Failed to create project files: {ex.Message}");
125
_interactionService
.DisplaySuccess($"Created {language.DisplayName.EscapeMarkup()} project at {outputPath.EscapeMarkup()}");
135
var useLocalhostTld = await
_interactionService
.PromptConfirmAsync(
142
_interactionService
.DisplayMessage(KnownEmojis.CheckMarkButton, TemplatingStrings.UseLocalhostTld_UsingLocalhostTld);
Templating\CliTemplateFactory.GoStarterTemplate.cs (6)
25
_interactionService
.DisplayError("Unable to determine Aspire version for the Go starter template.");
48
templateResult = await
_interactionService
.ShowStatusAsync(
80
_interactionService
.DisplayError("Automatic 'aspire restore' is unavailable for the new Go starter project because no Go AppHost SDK generator was found.");
88
_interactionService
.DisplayError("Automatic 'aspire restore' failed for the new Go starter project. Run 'aspire restore' in the project directory for more details.");
103
_interactionService
.DisplayError($"Failed to create project files: {ex.Message}");
107
_interactionService
.DisplaySuccess($"Created Go starter project at {outputPath.EscapeMarkup()}");
Templating\CliTemplateFactory.JavaStarterTemplate.cs (6)
25
_interactionService
.DisplayError("Unable to determine Aspire version for the Java starter template.");
48
templateResult = await
_interactionService
.ShowStatusAsync(
80
_interactionService
.DisplayError("Automatic 'aspire restore' is unavailable for the new Java starter project because no Java AppHost SDK generator was found.");
88
_interactionService
.DisplayError("Automatic 'aspire restore' failed for the new Java starter project. Run 'aspire restore' in the project directory for more details.");
103
_interactionService
.DisplayError($"Failed to create project files: {ex.Message}");
107
_interactionService
.DisplaySuccess($"Created Java starter project at {outputPath.EscapeMarkup()}");
Templating\CliTemplateFactory.PythonStarterTemplate.cs (8)
26
_interactionService
.DisplayError("Unable to determine Aspire version for the Python starter template.");
50
templateResult = await
_interactionService
.ShowStatusAsync(
94
_interactionService
.DisplayError("Automatic 'aspire restore' is unavailable for the new Python starter project because no TypeScript AppHost SDK generator was found.");
102
_interactionService
.DisplayError("Automatic 'aspire restore' failed for the new Python starter project. Run 'aspire restore' in the project directory for more details.");
117
_interactionService
.DisplayError($"Failed to create project files: {ex.Message}");
121
_interactionService
.DisplaySuccess($"Created Python starter project at {outputPath.EscapeMarkup()}");
131
var useRedisCache = await
_interactionService
.PromptConfirmAsync(
138
_interactionService
.DisplayMessage(KnownEmojis.CheckMarkButton, TemplatingStrings.UseRedisCache_UsingRedisCache);
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (6)
26
_interactionService
.DisplayError("Unable to determine Aspire version for the TypeScript starter template.");
49
templateResult = await
_interactionService
.ShowStatusAsync(
78
_interactionService
.DisplayError("Automatic 'aspire restore' is unavailable for the new TypeScript starter project because no TypeScript AppHost SDK generator was found.");
86
_interactionService
.DisplayError("Automatic 'aspire restore' failed for the new TypeScript starter project. Run 'aspire restore' in the project directory for more details.");
101
_interactionService
.DisplayError($"Failed to create project files: {ex.Message}");
105
_interactionService
.DisplaySuccess($"Created TypeScript starter project at {outputPath.EscapeMarkup()}");