1 interface inheriting from IInteractionService
aspire (1)
Interaction\ExtensionInteractionService.cs (1)
13internal interface IExtensionInteractionService : IInteractionService
6 implementations of IInteractionService
aspire (1)
Interaction\ConsoleInteractionService.cs (1)
12internal class ConsoleInteractionService : IInteractionService
Aspire.Cli.Tests (5)
Commands\NewCommandTests.cs (1)
850internal sealed class OrderTrackingInteractionService(List<string> operationOrder) : IInteractionService
Commands\PublishCommandPromptingIntegrationTests.cs (1)
890internal sealed class TestConsoleInteractionServiceWithPromptTracking : IInteractionService
Commands\UpdateCommandTests.cs (1)
940internal sealed class CancellationTrackingInteractionService : IInteractionService
Templating\DotNetTemplateFactoryTests.cs (1)
407private sealed class TestInteractionService : IInteractionService
TestServices\TestConsoleInteractionService.cs (1)
11internal sealed class TestConsoleInteractionService : IInteractionService
264 references to IInteractionService
aspire (103)
Backchannel\AppHostConnectionResolver.cs (1)
32IInteractionService interactionService,
Certificates\CertificateService.cs (1)
34internal sealed partial class CertificateService(IInteractionService interactionService, AspireCliTelemetry telemetry) : ICertificateService
Commands\AddCommand.cs (2)
47public AddCommand(IPackagingService packagingService, IInteractionService interactionService, IProjectLocator projectLocator, IAddCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory) 314internal class AddCommandPrompter(IInteractionService interactionService) : IAddCommandPrompter
Commands\AgentCommand.cs (1)
22IInteractionService interactionService,
Commands\AgentInitCommand.cs (2)
24private readonly IInteractionService _interactionService; 39IInteractionService interactionService,
Commands\AgentMcpCommand.cs (1)
45IInteractionService interactionService,
Commands\BaseCommand.cs (3)
22protected IInteractionService InteractionService { get; } 26protected BaseCommand(string name, string description, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, IInteractionService interactionService, AspireCliTelemetry telemetry) : base(name, description) 60internal static int HandleProjectLocatorException(ProjectLocatorException ex, IInteractionService interactionService, AspireCliTelemetry telemetry)
Commands\BaseConfigSubCommand.cs (1)
11internal abstract class BaseConfigSubCommand(string name, string description, IFeatures features, ICliUpdateNotifier updateNotifier, IConfigurationService configurationService, CliExecutionContext executionContext, IInteractionService interactionService, AspireCliTelemetry telemetry) : BaseCommand(name, description, features, updateNotifier, executionContext, interactionService, telemetry)
Commands\CacheCommand.cs (2)
17public CacheCommand(IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, AspireCliTelemetry telemetry) 35public ClearCommand(IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, AspireCliTelemetry telemetry)
Commands\ConfigCommand.cs (7)
22private readonly IInteractionService _interactionService; 24public ConfigCommand(IConfiguration configuration, IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, AspireCliTelemetry telemetry) 74public GetCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, AspireCliTelemetry telemetry) 132public SetCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, AspireCliTelemetry telemetry) 199private sealed class ListCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, AspireCliTelemetry telemetry) 294public DeleteCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, AspireCliTelemetry telemetry) 374public InfoCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, AspireCliTelemetry telemetry)
Commands\DeployCommand.cs (1)
21public DeployCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ILogger<DeployCommand> logger, IAnsiConsole ansiConsole)
Commands\DoCommand.cs (1)
21public DoCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ILogger<DoCommand> logger, IAnsiConsole ansiConsole)
Commands\DocsCommand.cs (1)
23IInteractionService interactionService,
Commands\DocsGetCommand.cs (1)
41IInteractionService interactionService,
Commands\DocsListCommand.cs (1)
32IInteractionService interactionService,
Commands\DocsSearchCommand.cs (1)
42IInteractionService interactionService,
Commands\DoctorCommand.cs (1)
30IInteractionService interactionService,
Commands\ExecCommand.cs (1)
53IInteractionService interactionService,
Commands\ExtensionInternalCommand.cs (2)
18public ExtensionInternalCommand(IFeatures features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService, AspireCliTelemetry telemetry) : base("extension", "Hidden command for extension integration", features, updateNotifier, executionContext, interactionService, telemetry) 33public GetAppHostCandidatesCommand(IFeatures features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService, AspireCliTelemetry telemetry) : base("get-apphosts", "Get AppHosts in the specified directory", features, updateNotifier, executionContext, interactionService, telemetry)
Commands\InitCommand.cs (1)
81IInteractionService interactionService,
Commands\LogsCommand.cs (2)
73private readonly IInteractionService _interactionService; 118IInteractionService interactionService,
Commands\McpCommand.cs (1)
20IInteractionService interactionService,
Commands\McpInitCommand.cs (1)
35IInteractionService interactionService,
Commands\McpStartCommand.cs (1)
22IInteractionService interactionService,
Commands\NewCommand.cs (2)
77IInteractionService interactionService, 255internal class NewCommandPrompter(IInteractionService interactionService) : INewCommandPrompter
Commands\PipelineCommandBase.cs (1)
70protected PipelineCommandBase(string name, string description, IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ILogger logger, IAnsiConsole ansiConsole)
Commands\PsCommand.cs (2)
47private readonly IInteractionService _interactionService; 56IInteractionService interactionService,
Commands\PublishCommand.cs (2)
22internal class PublishCommandPrompter(IInteractionService interactionService) : IPublishCommandPrompter 39public PublishCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, IPublishCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ILogger<PublishCommand> logger, IAnsiConsole ansiConsole)
Commands\ResourceCommand.cs (2)
17private readonly IInteractionService _interactionService; 37IInteractionService interactionService,
Commands\ResourceCommandBase.cs (1)
58IInteractionService interactionService,
Commands\ResourceCommandHelper.cs (3)
31IInteractionService interactionService, 54IInteractionService interactionService, 86IInteractionService interactionService,
Commands\ResourcesCommand.cs (2)
71private readonly IInteractionService _interactionService; 93IInteractionService interactionService,
Commands\RestartCommand.cs (1)
24IInteractionService interactionService,
Commands\RootCommand.cs (2)
104private readonly IInteractionService _interactionService; 133IInteractionService interactionService)
Commands\RunCommand.cs (3)
56private readonly IInteractionService _interactionService; 91IInteractionService interactionService, 514private static async Task CaptureAppHostLogsAsync(Diagnostics.FileLoggerProvider fileLoggerProvider, IAppHostCliBackchannel backchannel, IInteractionService interactionService, CancellationToken cancellationToken)
Commands\Sdk\SdkCommand.cs (1)
25IInteractionService interactionService,
Commands\Sdk\SdkDumpCommand.cs (1)
56IInteractionService interactionService,
Commands\Sdk\SdkGenerateCommand.cs (1)
49IInteractionService interactionService,
Commands\StartCommand.cs (1)
24IInteractionService interactionService,
Commands\StopCommand.cs (2)
20private readonly IInteractionService _interactionService; 37IInteractionService interactionService,
Commands\TelemetryCommand.cs (1)
23IInteractionService interactionService,
Commands\TelemetryCommandHelpers.cs (1)
108IInteractionService interactionService,
Commands\TelemetryLogsCommand.cs (2)
27private readonly IInteractionService _interactionService; 46IInteractionService interactionService,
Commands\TelemetrySpansCommand.cs (2)
27private readonly IInteractionService _interactionService; 42IInteractionService interactionService,
Commands\TelemetryTracesCommand.cs (2)
26private readonly IInteractionService _interactionService; 40IInteractionService interactionService,
Commands\TemplateCommand.cs (1)
17public TemplateCommand(ITemplate template, Func<ParseResult, CancellationToken, Task<int>> executeCallback, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, IInteractionService interactionService, AspireCliTelemetry telemetry)
Commands\UpdateCommand.cs (1)
51IInteractionService interactionService,
DotNet\DotNetCliRunner.cs (1)
69IInteractionService interactionService,
Packaging\NuGetConfigPrompter.cs (2)
14private readonly IInteractionService _interactionService; 16public NuGetConfigPrompter(IInteractionService interactionService)
Program.cs (4)
571var interactionService = app.Services.GetRequiredService<IInteractionService>(); 618builder.Services.AddSingleton<IInteractionService>(provider => 632builder.Services.AddSingleton<IInteractionService>(provider =>
Projects\DotNetAppHostProject.cs (2)
24private readonly IInteractionService _interactionService; 39IInteractionService interactionService,
Projects\GuestAppHostProject.cs (2)
30private readonly IInteractionService _interactionService; 49IInteractionService interactionService,
Projects\LanguageService.cs (2)
17private readonly IInteractionService _interactionService; 23IInteractionService interactionService,
Projects\ProjectLocator.cs (1)
25IInteractionService interactionService,
Projects\ProjectUpdater.cs (2)
26internal sealed partial class ProjectUpdater(ILogger<ProjectUpdater> logger, IDotNetCliRunner runner, IInteractionService interactionService, IMemoryCache cache, CliExecutionContext executionContext, FallbackProjectParser fallbackParser) : IProjectUpdater 368internal static async Task UpdateSdkVersionInAppHostAsync(FileInfo projectFile, NuGetPackageCli package, IInteractionService interactionService, SdkMigrationInfo migrationInfo)
Projects\RunningInstanceManager.cs (2)
24private readonly IInteractionService _interactionService; 29IInteractionService interactionService,
Projects\SolutionLocator.cs (1)
15internal sealed class SolutionLocator(ILogger<SolutionLocator> logger, IInteractionService interactionService) : ISolutionLocator
Scaffolding\ScaffoldingService.cs (2)
22private readonly IInteractionService _interactionService; 30IInteractionService interactionService,
Templating\DotNetTemplateFactory.cs (1)
21IInteractionService interactionService,
Utils\AppHostHelper.cs (3)
17internal static async Task<(bool IsCompatibleAppHost, bool SupportsBackchannel, string? AspireHostingVersion)> CheckAppHostCompatibilityAsync(IDotNetCliRunner runner, IInteractionService interactionService, FileInfo projectFile, AspireCliTelemetry telemetry, DirectoryInfo workingDirectory, string logFilePath, CancellationToken cancellationToken) 53internal static async Task<(int ExitCode, bool IsAspireHost, string? AspireHostingVersion)> GetAppHostInformationAsync(IDotNetCliRunner runner, IInteractionService interactionService, FileInfo projectFile, AspireCliTelemetry telemetry, DirectoryInfo workingDirectory, CancellationToken cancellationToken) 68internal static async Task<int> BuildAppHostAsync(IDotNetCliRunner runner, IInteractionService interactionService, FileInfo projectFile, DotNetCliRunnerInvocationOptions options, DirectoryInfo workingDirectory, CancellationToken cancellationToken)
Utils\CliDownloader.cs (1)
23IInteractionService interactionService,
Utils\CliUpdateNotifier.cs (1)
22IInteractionService interactionService) : ICliUpdateNotifier
Utils\ExtensionHelper.cs (1)
13IInteractionService interactionService,
Utils\SdkInstallHelper.cs (1)
31IInteractionService interactionService,
Aspire.Cli.Tests (161)
Commands\AddCommandTests.cs (25)
41var interactionService = sp.GetRequiredService<IInteractionService>(); 108var interactionService = sp.GetRequiredService<IInteractionService>(); 185var interactionService = sp.GetRequiredService<IInteractionService>(); 270var interactionService = sp.GetRequiredService<IInteractionService>(); 359var interactionService = sp.GetRequiredService<IInteractionService>(); 470var interactionService = sp.GetRequiredService<IInteractionService>(); 566var interactionService = provider.GetRequiredService<IInteractionService>(); 614var interactionService = provider.GetRequiredService<IInteractionService>(); 662var interactionService = provider.GetRequiredService<IInteractionService>(); 750internal sealed class TestAddCommandPrompter(IInteractionService interactionService) : AddCommandPrompter(interactionService) 787var interactionService = sp.GetRequiredService<IInteractionService>(); 864var interactionService = sp.GetRequiredService<IInteractionService>(); 948var interactionService = sp.GetRequiredService<IInteractionService>();
Commands\DeployCommandTests.cs (9)
185var interactionService = sp.GetRequiredService<IInteractionService>(); 254var interactionService = sp.GetRequiredService<IInteractionService>(); 326var interactionService = sp.GetRequiredService<IInteractionService>(); 386var interactionService = sp.GetRequiredService<IInteractionService>(); 472internal sealed class TestDeployCommandPrompter(IInteractionService interactionService) : PublishCommandPrompter(interactionService)
Commands\InitCommandTests.cs (5)
211var interactionService = sp.GetRequiredService<IInteractionService>(); 294private sealed class TestNewCommandPrompter(IInteractionService interactionService) : NewCommandPrompter(interactionService) 380var interactionService = sp.GetRequiredService<IInteractionService>();
Commands\NewCommandTests.cs (25)
47var interactionService = sp.GetRequiredService<IInteractionService>(); 91var interactionService = sp.GetRequiredService<IInteractionService>(); 149var interactionService = sp.GetRequiredService<IInteractionService>(); 204var interactionService = sp.GetRequiredService<IInteractionService>(); 259var interactionService = sp.GetRequiredService<IInteractionService>(); 340var interactionService = sp.GetRequiredService<IInteractionService>(); 417var interactionService = sp.GetRequiredService<IInteractionService>(); 471var interactionService = sp.GetRequiredService<IInteractionService>(); 556var interactionService = sp.GetRequiredService<IInteractionService>(); 611var interactionService = sp.GetRequiredService<IInteractionService>(); 673var interactionService = sp.GetRequiredService<IInteractionService>(); 751var interactionService = sp.GetRequiredService<IInteractionService>(); 806internal sealed class TestNewCommandPrompter(IInteractionService interactionService) : NewCommandPrompter(interactionService)
Commands\PublishCommandPromptingIntegrationTests.cs (14)
42services.AddSingleton<IInteractionService>(consoleService); 88services.AddSingleton<IInteractionService>(consoleService); 140services.AddSingleton<IInteractionService>(consoleService); 187services.AddSingleton<IInteractionService>(consoleService); 233services.AddSingleton<IInteractionService>(consoleService); 291services.AddSingleton<IInteractionService>(consoleService); 370services.AddSingleton<IInteractionService>(consoleService); 438services.AddSingleton<IInteractionService>(consoleService); 490services.AddSingleton<IInteractionService>(consoleService); 545services.AddSingleton<IInteractionService>(consoleService); 616services.AddSingleton<IInteractionService>(consoleService); 660services.AddSingleton<IInteractionService>(consoleService); 703services.AddSingleton<IInteractionService>(consoleService); 744services.AddSingleton<IInteractionService>(consoleService);
Commands\PublishCommandTests.cs (3)
216var interactionService = sp.GetRequiredService<IInteractionService>(); 234internal sealed class TestPublishCommandPrompter(IInteractionService interactionService) : PublishCommandPrompter(interactionService)
Commands\UpdateCommandTests.cs (2)
942private readonly IInteractionService _innerService; 946public CancellationTrackingInteractionService(IInteractionService innerService)
DotNet\DotNetCliRunnerTests.cs (6)
1076var interactionService = provider.GetRequiredService<IInteractionService>(); 1122var interactionService = provider.GetRequiredService<IInteractionService>(); 1163var interactionService = provider.GetRequiredService<IInteractionService>();
Projects\ProjectLocatorTests.cs (1)
960IInteractionService? interactionService = null,
Projects\ProjectUpdaterTests.cs (38)
117var interactionService = provider.GetRequiredService<IInteractionService>(); 229var interactionService = provider.GetRequiredService<IInteractionService>(); 368var interactionService = provider.GetRequiredService<IInteractionService>(); 520var interactionService = provider.GetRequiredService<IInteractionService>(); 663var interactionService = provider.GetRequiredService<IInteractionService>(); 768var interactionService = provider.GetRequiredService<IInteractionService>(); 871var interactionService = provider.GetRequiredService<IInteractionService>(); 1014var interactionService = provider.GetRequiredService<IInteractionService>(); 1137var interactionService = provider.GetRequiredService<IInteractionService>(); 1251var interactionService = provider.GetRequiredService<IInteractionService>(); 1361var interactionService = provider.GetRequiredService<IInteractionService>(); 1459var interactionService = provider.GetRequiredService<IInteractionService>(); 1561var interactionService = provider.GetRequiredService<IInteractionService>(); 1640var interactionService = provider.GetRequiredService<IInteractionService>(); 1722var interactionService = provider.GetRequiredService<IInteractionService>(); 1801var interactionService = provider.GetRequiredService<IInteractionService>(); 1884var interactionService = provider.GetRequiredService<IInteractionService>(); 1972var interactionService = provider.GetRequiredService<IInteractionService>(); 2351var interactionService = provider.GetRequiredService<IInteractionService>();
TestServices\TestDotNetCliExecutionFactory.cs (3)
47public IInteractionService? InteractionService { get; set; } 160serviceProvider.GetRequiredService<IInteractionService>(), 190serviceProvider.GetRequiredService<IInteractionService>(),
Utils\CliTestHelper.cs (21)
258var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 266var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 272var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 278var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 307var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 318var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 331var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 344public Func<IServiceProvider, IInteractionService> InteractionServiceFactory { get; set; } = (IServiceProvider serviceProvider) => 354var interactiveService = serviceProvider.GetRequiredService<IInteractionService>(); 373var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 421var interactionService = serviceProvider.GetRequiredService<IInteractionService>();
Utils\CliUpdateNotificationServiceTests.cs (9)
59var interactionService = sp.GetRequiredService<IInteractionService>(); 114var interactionService = sp.GetRequiredService<IInteractionService>(); 169var interactionService = sp.GetRequiredService<IInteractionService>(); 220var interactionService = sp.GetRequiredService<IInteractionService>(); 279internal sealed class CliUpdateNotifierWithPackageVersionOverride(string currentVersion, ILogger<CliUpdateNotifier> logger, INuGetPackageCache nuGetPackageCache, IInteractionService interactionService) : CliUpdateNotifier(logger, nuGetPackageCache, interactionService)