1 write to _hostEnvironment
aspire (1)
Commands\AddCommand.cs (1)
67
_hostEnvironment
= hostEnvironment;
6 references to _hostEnvironment
aspire (6)
Commands\AddCommand.cs (6)
114
if (integrationName is null && !
_hostEnvironment
.SupportsInteractiveInput)
308
if (filteredPackagesWithShortName.Count == 0 && integrationName is not null && !
_hostEnvironment
.SupportsInteractiveInput)
711
var promptForPackage =
_hostEnvironment
.SupportsInteractiveInput &&
718
1 when promptForSinglePackage &&
_hostEnvironment
.SupportsInteractiveInput => await PromptForIntegrationAsync(candidates, cancellationToken),
720
> 1 when !
_hostEnvironment
.SupportsInteractiveInput => distinctPackages.First(),
787
if (!
_hostEnvironment
.SupportsInteractiveInput)