6 implementations of IInteractionService
Aspire.Hosting (1)
InteractionService.cs (1)
20internal class InteractionService : IInteractionService
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
27internal sealed class TestInteractionService : IInteractionService
Aspire.Hosting.Browsers.Tests (1)
tests\Shared\TestInteractionService.cs (1)
27internal sealed class TestInteractionService : IInteractionService
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\TestInteractionService.cs (1)
27internal sealed class TestInteractionService : IInteractionService
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TestInteractionService.cs (1)
27internal sealed class TestInteractionService : IInteractionService
Aspire.Hosting.Tests (1)
tests\Shared\TestInteractionService.cs (1)
27internal sealed class TestInteractionService : IInteractionService
171 references to IInteractionService
Aspire.Hosting (36)
ApplicationModel\RequiredCommandValidator.cs (2)
20private readonly IInteractionService _interactionService; 28IInteractionService interactionService,
ApplicationModel\ResourceCommandService.cs (4)
423var interactionService = _serviceProvider.GetRequiredService<IInteractionService>(); 700var interactionService = _serviceProvider.GetRequiredService<IInteractionService>();
ApplicationModel\TerminalPlacement.cs (1)
24/// The terminal can be displayed by <see cref="IInteractionService.PromptTerminalAsync"/>.
ApplicationModel\TerminalService.cs (1)
23/// Two experiences share this service: terminals displayed by <see cref="IInteractionService.PromptTerminalAsync"/>
Ats\AtsTypeMappings.cs (1)
61[assembly: AspireExport(typeof(IInteractionService))]
Ats\InteractionExports.cs (15)
30public static IInteractionService GetInteractionService(this IServiceProvider serviceProvider) 34return serviceProvider.GetRequiredService<IInteractionService>(); 43public static bool IsAvailable(this IInteractionService interactionService) 55this IInteractionService interactionService, 72this IInteractionService interactionService, 89this IInteractionService interactionService, 108this IInteractionService interactionService, 126this IInteractionService interactionService, 147this IInteractionService interactionService, 176public static InteractionInputBuilder CreateTextInput(this IInteractionService interactionService, string name, CreateInteractionInputOptions? options = null) 185public static InteractionInputBuilder CreateSecretInput(this IInteractionService interactionService, string name, CreateInteractionInputOptions? options = null) 194public static InteractionInputBuilder CreateBooleanInput(this IInteractionService interactionService, string name, CreateInteractionInputOptions? options = null) 203public static InteractionInputBuilder CreateNumberInput(this IInteractionService interactionService, string name, CreateInteractionInputOptions? options = null) 212public static InteractionInputBuilder CreateFileInput(this IInteractionService interactionService, string name, CreateInteractionInputOptions? options = null) 225public static InteractionInputBuilder CreateChoiceInput(this IInteractionService interactionService, string name, IReadOnlyList<InteractionChoiceOption>? choices = null, CreateInteractionInputOptions? options = null)
Dcp\DcpHost.cs (2)
36private readonly IInteractionService _interactionService; 61IInteractionService interactionService,
DistributedApplicationBuilder.cs (1)
412_innerBuilder.Services.AddSingleton<IInteractionService>(sp => sp.GetRequiredService<InteractionService>());
IInteractionService.cs (2)
996/// <see cref="IInteractionService.PromptProgressAsync"/> is canceled. 1035/// Exceptions propagate from <see cref="IInteractionService.PromptTerminalAsync"/> after the dialog is removed.
Orchestrator\ParameterProcessor.cs (1)
19IInteractionService interactionService,
Pipelines\DistributedApplicationPipeline.cs (2)
87var interactionService = context.Services.GetRequiredService<IInteractionService>();
Publishing\ContainerRuntimeReadiness.cs (2)
43var interactionService = services.GetService<IInteractionService>();
VersionChecking\VersionCheckService.cs (2)
24private readonly IInteractionService _interactionService; 34public VersionCheckService(IInteractionService interactionService, ILogger<VersionCheckService> logger,
Aspire.Hosting.Azure (13)
AzureEnvironmentResource.cs (4)
244var interactionService = context.Services.GetRequiredService<IInteractionService>(); 327var interactionService = context.Services.GetRequiredService<IInteractionService>();
AzureProvisioningController.cs (5)
658var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 1655var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 1734if (!intent.ReprovisionAfterReset || !serviceProvider.GetRequiredService<IInteractionService>().IsAvailable)
Provisioning\Internal\BaseProvisioningContextProvider.cs (2)
19IInteractionService interactionService, 34protected readonly IInteractionService _interactionService = interactionService;
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
18IInteractionService interactionService,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
20IInteractionService interactionService,
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
410var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.Azure.Tests (14)
AzureDeployerTests.cs (3)
1544IInteractionService? interactionService = null, 1890builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1956builder.Services.AddSingleton<IInteractionService>(testInteractionService);
AzureEnvironmentResourceExtensionsTests.cs (11)
396builder.Services.AddSingleton<IInteractionService>(testInteractionService); 437builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2759builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2815builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2872builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2919builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3058builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3183builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3247builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3427builder.Services.AddSingleton<IInteractionService>(testInteractionService); 4103builder.Services.AddSingleton<IInteractionService>(testInteractionService);
Aspire.Hosting.Browsers (2)
BrowserLogsBuilderExtensions.cs (2)
226var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (2)
226var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.DevTunnels (7)
DevTunnelLoginManager.cs (2)
12IInteractionService interactionService, 19private readonly IInteractionService _interactionService = interactionService;
DevTunnelResourceBuilderExtensions.cs (4)
647var interactionService = context.Services.GetRequiredService<IInteractionService>(); 854var interactionService = context.Services.GetRequiredService<IInteractionService>();
LoggedOutNotificationManager.cs (1)
8internal sealed class LoggedOutNotificationManager(IInteractionService interactionService) : CoalescingAsyncOperation
Aspire.Hosting.DevTunnels.Tests (4)
DevTunnelResourceBuilderExtensionsTests.cs (3)
518builder.Services.AddSingleton<IInteractionService>(interactionService); 608builder.Services.AddSingleton<IInteractionService>(interactionService); 649builder.Services.AddSingleton<IInteractionService>(interactionService);
TestDevTunnelMonitor.cs (1)
24_builder.Services.AddSingleton<IInteractionService>(Interaction);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
515var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.EntityFrameworkCore (3)
EFResourceBuilderExtensions.cs (3)
917Func<EFCoreOperationExecutor, ILogger, IInteractionService?, Task<ExecuteCommandResult>> executeOperation) 921var interactionService = context.Services.GetService<IInteractionService>();
Aspire.Hosting.Kubernetes (2)
Deployment\HelmDeploymentEngine.cs (2)
674var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.Testing.Tests (1)
DashboardTestingBuilderTests.cs (1)
104Assert.False(app.Services.GetRequiredService<IInteractionService>().IsAvailable);
Aspire.Hosting.Tests (23)
DotnetProgramPublishingTests.cs (3)
316builder.Services.AddSingleton<IInteractionService>(new TestInteractionService { IsAvailable = false }); 377builder.Services.AddSingleton<IInteractionService>(interactions); 409builder.Services.AddSingleton<IInteractionService>(interactions);
Orchestrator\ParameterProcessorTests.cs (1)
1264IInteractionService? interactionService = null,
Publishing\ContainerRuntimeReadinessTests.cs (1)
177.AddSingleton<IInteractionService>(interactions)
RequiredCommandAnnotationTests.cs (3)
388builder.Services.AddSingleton<IInteractionService>(testInteractionService); 420builder.Services.AddSingleton<IInteractionService>(testInteractionService); 444builder.Services.AddSingleton<IInteractionService>(testInteractionService);
ResourceCommandServiceTests.cs (12)
1264builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1422builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1494builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1548var interactionService = e.Services.GetRequiredService<IInteractionService>(); 1578var interactionService = e.Services.GetRequiredService<IInteractionService>(); 1586var baselineIsAvailable = app.Services.GetRequiredService<IInteractionService>().IsAvailable; 1843builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1888builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1939builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1972builder.Services.AddSingleton<IInteractionService>(testInteractionService);
VersionChecking\VersionCheckServiceTests.cs (1)
389IInteractionService? interactionService = null,
WithTerminalTests.cs (2)
50[InlineData(typeof(IInteractionService), nameof(IInteractionService.PromptTerminalAsync))]
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
35var interactionService = context.Services.GetRequiredService<IInteractionService>();
Stress.AppHost (48)
InteractionCommands.cs (48)
19var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 37var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 49var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 70var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 107var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 142var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 194var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 280var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 361var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 500var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 606var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 608RunInteractionWithDismissValues(nameof(IInteractionService.PromptNotificationAsync), (showDismiss, title) => 616RunInteractionWithDismissValues(nameof(IInteractionService.PromptConfirmationAsync), (showDismiss, title) => 624RunInteractionWithDismissValues(nameof(IInteractionService.PromptMessageBoxAsync), (showDismiss, title) => 632RunInteractionWithDismissValues(nameof(IInteractionService.PromptInputAsync), (showDismiss, title) => 647var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 682var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 878var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 907var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 933var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 958var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 981var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 1004var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 1029var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 1070var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 1115var interactionService = commandContext.Services.GetRequiredService<IInteractionService>();
Terminals.AppHost (10)
TerminalInteractionCommands.cs (10)
14/// Commands that exercise <see cref="IInteractionService.PromptTerminalAsync"/> — a dialog whose terminal is owned by the 49var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 128var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 272/// use — and there is no API to call instead. A <see cref="IInteractionService.PromptTerminalAsync"/> dialog plus 290var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 406var interactionService = commandContext.Services.GetRequiredService<IInteractionService>();