4 instantiations of AppHostProjectSelection
aspire (3)
Projects\LanguageService.cs (3)
132
return new
AppHostProjectSelection
(_projectFactory.GetProject(language), ShouldPersistSelection: false);
139
return new
AppHostProjectSelection
(configuredProject, ShouldPersistSelection: false);
152
return new
AppHostProjectSelection
(selectedProject, ShouldPersistSelection: !saveLanguageSelection);
Aspire.Cli.Tests (1)
TestServices\TestLanguageService.cs (1)
73
return new
AppHostProjectSelection
(project, ShouldPersistSelection: false);
6 references to AppHostProjectSelection
aspire (4)
Commands\InitCommand.cs (1)
120
var
projectSelection = await _languageService.GetOrPromptForProjectSelectionAsync(explicitLanguage, saveLanguageSelection: false, cancellationToken);
Projects\ILanguageService.cs (1)
49
Task<
AppHostProjectSelection
> GetOrPromptForProjectSelectionAsync(string? explicitLanguageId = null, bool saveLanguageSelection = true, CancellationToken cancellationToken = default);
Projects\LanguageService.cs (2)
111
var
selection = await GetOrPromptForProjectSelectionAsync(explicitLanguageId, saveLanguageSelection, cancellationToken);
117
public async Task<
AppHostProjectSelection
> GetOrPromptForProjectSelectionAsync(
Aspire.Cli.Tests (2)
TestServices\TestLanguageService.cs (2)
14
public Func<string?, bool, CancellationToken, Task<
AppHostProjectSelection
>>? GetOrPromptForProjectSelectionAsyncCallback { get; set; }
65
public async Task<
AppHostProjectSelection
> GetOrPromptForProjectSelectionAsync(string? explicitLanguageId = null, bool saveLanguageSelection = true, CancellationToken cancellationToken = default)