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