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
186 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; 51IInteractionService interactionService,
DistributedApplicationBuilder.cs (1)
427_innerBuilder.Services.AddSingleton<IInteractionService>(sp => sp.GetRequiredService<InteractionService>());
IInteractionService.cs (2)
1011/// <see cref="IInteractionService.PromptProgressAsync"/> is canceled. 1050/// Exceptions propagate from <see cref="IInteractionService.PromptTerminalAsync"/> after the dialog is removed.
Orchestrator\ParameterProcessor.cs (1)
20IInteractionService 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)
266var interactionService = context.Services.GetRequiredService<IInteractionService>(); 349var interactionService = context.Services.GetRequiredService<IInteractionService>();
AzureProvisioningController.cs (5)
684var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 1703var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 1782if (!intent.ReprovisionAfterReset || !serviceProvider.GetRequiredService<IInteractionService>().IsAvailable)
Provisioning\Internal\BaseProvisioningContextProvider.cs (2)
19IInteractionService interactionService, 35protected readonly IInteractionService _interactionService = interactionService;
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
19IInteractionService interactionService,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
21IInteractionService interactionService,
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
431var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.Azure.Tests (14)
AzureDeployerTests.cs (3)
1733IInteractionService? interactionService = null, 2079builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2145builder.Services.AddSingleton<IInteractionService>(testInteractionService);
AzureEnvironmentResourceExtensionsTests.cs (11)
695builder.Services.AddSingleton<IInteractionService>(testInteractionService); 736builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3105builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3161builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3218builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3265builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3404builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3529builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3593builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3773builder.Services.AddSingleton<IInteractionService>(testInteractionService); 4449builder.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>(); 861var interactionService = context.Services.GetRequiredService<IInteractionService>();
LoggedOutNotificationManager.cs (1)
8internal sealed class LoggedOutNotificationManager(IInteractionService interactionService) : CoalescingAsyncOperation
Aspire.Hosting.DevTunnels.Tests (4)
DevTunnelResourceBuilderExtensionsTests.cs (3)
553builder.Services.AddSingleton<IInteractionService>(interactionService); 645builder.Services.AddSingleton<IInteractionService>(interactionService); 688builder.Services.AddSingleton<IInteractionService>(interactionService);
TestDevTunnelMonitor.cs (1)
25_builder.Services.AddSingleton<IInteractionService>(Interaction);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
521var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.EntityFrameworkCore (3)
EFResourceBuilderExtensions.cs (3)
912Func<EFCoreOperationExecutor, ILogger, IInteractionService?, Task<ExecuteCommandResult>> executeOperation) 916var interactionService = context.Services.GetService<IInteractionService>();
Aspire.Hosting.Kubernetes (2)
Deployment\HelmDeploymentEngine.cs (2)
673var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.Testing.Tests (3)
DashboardTestingBuilderTests.cs (3)
105Assert.False(app.Services.GetRequiredService<IInteractionService>().IsAvailable); 123Assert.False(e.Services.GetRequiredService<IInteractionService>().IsAvailable); 132Assert.True(app.Services.GetRequiredService<IInteractionService>().IsAvailable);
Aspire.Hosting.Tests (32)
DotnetProgramPublishingTests.cs (3)
316builder.Services.AddSingleton<IInteractionService>(new TestInteractionService { IsAvailable = false }); 377builder.Services.AddSingleton<IInteractionService>(interactions); 409builder.Services.AddSingleton<IInteractionService>(interactions);
InteractionServiceTests.cs (9)
219var interactionService = e.Services.GetRequiredService<IInteractionService>(); 234var interactionService = app.Services.GetRequiredService<IInteractionService>(); 259var interactionService = app.Services.GetRequiredService<IInteractionService>(); 276var interactionService = app.Services.GetRequiredService<IInteractionService>(); 288Assert.True(wrapper.Services.GetRequiredService<IInteractionService>().IsAvailable);
Orchestrator\ParameterProcessorTests.cs (1)
1881IInteractionService? 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)
1265builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1424builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1496builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1550var interactionService = e.Services.GetRequiredService<IInteractionService>(); 1580var interactionService = e.Services.GetRequiredService<IInteractionService>(); 1588var baselineIsAvailable = app.Services.GetRequiredService<IInteractionService>().IsAvailable; 1932builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1977builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2028builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2061builder.Services.AddSingleton<IInteractionService>(testInteractionService);
VersionChecking\VersionCheckServiceTests.cs (1)
389IInteractionService? interactionService = null,
WithTerminalTests.cs (2)
49[InlineData(typeof(IInteractionService), nameof(IInteractionService.PromptTerminalAsync))]
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
35var interactionService = context.Services.GetRequiredService<IInteractionService>();
Stress.AppHost (52)
AppHost.cs (2)
172var interactionService = e.Services.GetRequiredService<IInteractionService>();
InteractionCommands.cs (50)
20var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 38var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 50var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 65var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 86var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 123var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 158var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 210var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 296var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 377var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 516var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 622var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 624RunInteractionWithDismissValues(nameof(IInteractionService.PromptNotificationAsync), (showDismiss, title) => 632RunInteractionWithDismissValues(nameof(IInteractionService.PromptConfirmationAsync), (showDismiss, title) => 640RunInteractionWithDismissValues(nameof(IInteractionService.PromptMessageBoxAsync), (showDismiss, title) => 648RunInteractionWithDismissValues(nameof(IInteractionService.PromptInputAsync), (showDismiss, title) => 663var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 698var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 894var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 923var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 949var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 974var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 997var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 1020var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 1045var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 1086var interactionService = commandContext.Services.GetRequiredService<IInteractionService>(); 1131var 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>();