2 implementations of IInteractionService
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
12internal class ConsoleInteractionService : IInteractionService
Interaction\ExtensionInteractionService.cs (1)
14internal class ExtensionInteractionService : IInteractionService
35 references to IInteractionService
aspire (35)
Certificates\CertificateService.cs (1)
18internal sealed class CertificateService(IInteractionService interactionService, AspireCliTelemetry telemetry) : ICertificateService
Commands\AddCommand.cs (3)
21private readonly IInteractionService _interactionService; 26public AddCommand(IDotNetCliRunner runner, INuGetPackageCache nuGetPackageCache, IInteractionService interactionService, IProjectLocator projectLocator, IAddCommandPrompter prompter, AspireCliTelemetry telemetry) 253internal class AddCommandPrompter(IInteractionService interactionService) : IAddCommandPrompter
Commands\ConfigCommand.cs (10)
18private readonly IInteractionService _interactionService; 20public ConfigCommand(IConfiguration configuration, IConfigurationService configurationService, IInteractionService interactionService) 51private readonly IInteractionService _interactionService; 53public GetCommand(IConfigurationService configurationService, IInteractionService interactionService) 93private readonly IInteractionService _interactionService; 95public SetCommand(IConfigurationService configurationService, IInteractionService interactionService) 160private readonly IInteractionService _interactionService; 162public ListCommand(IConfigurationService configurationService, IInteractionService interactionService) 191private readonly IInteractionService _interactionService; 193public DeleteCommand(IConfigurationService configurationService, IInteractionService interactionService)
Commands\DeployCommand.cs (1)
15public DeployCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry)
Commands\NewCommand.cs (3)
21private readonly IInteractionService _interactionService; 25public NewCommand(IDotNetCliRunner runner, INuGetPackageCache nuGetPackageCache, INewCommandPrompter prompter, IInteractionService interactionService, ICertificateService certificateService, ITemplateProvider templateProvider, AspireCliTelemetry telemetry) 111internal class NewCommandPrompter(IInteractionService interactionService) : INewCommandPrompter
Commands\PublishCommand.cs (2)
18internal class PublishCommandPrompter(IInteractionService interactionService) : IPublishCommandPrompter 35public PublishCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, IPublishCommandPrompter prompter, AspireCliTelemetry telemetry)
Commands\PublishCommandBase.cs (2)
24protected readonly IInteractionService _interactionService; 37protected PublishCommandBase(string name, string description, IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry)
Commands\RootCommand.cs (2)
20private readonly IInteractionService _interactionService; 22public RootCommand(NewCommand newCommand, RunCommand runCommand, AddCommand addCommand, PublishCommand publishCommand, DeployCommand deployCommand, ConfigCommand configCommand, IFeatures featureFlags, IInteractionService interactionService)
Commands\RunCommand.cs (2)
23private readonly IInteractionService _interactionService; 30public RunCommand(IDotNetCliRunner runner, IInteractionService interactionService, ICertificateService certificateService, IProjectLocator projectLocator, IAnsiConsole ansiConsole, AspireCliTelemetry telemetry, IConfiguration configuration)
Program.cs (4)
158var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 195builder.Services.AddSingleton<IInteractionService>(provider => 206builder.Services.AddSingleton<IInteractionService, ConsoleInteractionService>();
Projects\ProjectLocator.cs (1)
20internal sealed class ProjectLocator(ILogger<ProjectLocator> logger, IDotNetCliRunner runner, DirectoryInfo currentDirectory, IInteractionService interactionService, IConfigurationService configurationService, AspireCliTelemetry telemetry) : IProjectLocator
Templating\DotNetTemplateFactory.cs (1)
16internal class DotNetTemplateFactory(IInteractionService interactionService, IDotNetCliRunner runner, ICertificateService certificateService, INuGetPackageCache nuGetPackageCache, INewCommandPrompter prompter) : ITemplateFactory
Utils\AppHostHelper.cs (3)
16internal static async Task<(bool IsCompatibleAppHost, bool SupportsBackchannel, string? AspireHostingVersion)> CheckAppHostCompatibilityAsync(IDotNetCliRunner runner, IInteractionService interactionService, FileInfo projectFile, AspireCliTelemetry telemetry, CancellationToken cancellationToken) 52internal static async Task<(int ExitCode, bool IsAspireHost, string? AspireHostingVersion)> GetAppHostInformationAsync(IDotNetCliRunner runner, IInteractionService interactionService, FileInfo projectFile, AspireCliTelemetry telemetry, CancellationToken cancellationToken) 66internal static async Task<int> BuildAppHostAsync(IDotNetCliRunner runner, IInteractionService interactionService, FileInfo projectFile, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)