6 implementations of IInteractionService
Aspire.Hosting (1)
InteractionService.cs (1)
16internal class InteractionService : IInteractionService
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
21internal sealed class TestInteractionService : IInteractionService
Aspire.Hosting.Browsers.Tests (1)
tests\Shared\TestInteractionService.cs (1)
21internal sealed class TestInteractionService : IInteractionService
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\TestInteractionService.cs (1)
21internal sealed class TestInteractionService : IInteractionService
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TestInteractionService.cs (1)
21internal sealed class TestInteractionService : IInteractionService
Aspire.Hosting.Tests (1)
tests\Shared\TestInteractionService.cs (1)
21internal sealed class TestInteractionService : IInteractionService
151 references to IInteractionService
Aspire.Hosting (33)
ApplicationModel\RequiredCommandValidator.cs (2)
20private readonly IInteractionService _interactionService; 28IInteractionService interactionService,
ApplicationModel\ResourceCommandService.cs (4)
423var interactionService = _serviceProvider.GetRequiredService<IInteractionService>(); 700var interactionService = _serviceProvider.GetRequiredService<IInteractionService>();
Ats\AtsTypeMappings.cs (1)
60[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)
34private readonly IInteractionService _interactionService; 59IInteractionService interactionService,
DistributedApplicationBuilder.cs (1)
412_innerBuilder.Services.AddSingleton<IInteractionService>(sp => sp.GetRequiredService<InteractionService>());
IInteractionService.cs (1)
933/// <see cref="IInteractionService.PromptProgressAsync"/> is canceled.
Orchestrator\ParameterProcessor.cs (1)
22IInteractionService interactionService,
Pipelines\DistributedApplicationPipeline.cs (4)
89var interactionService = context.Services.GetRequiredService<IInteractionService>(); 173var interactionService = context.Services.GetService<IInteractionService>();
VersionChecking\VersionCheckService.cs (2)
26private readonly IInteractionService _interactionService; 36public VersionCheckService(IInteractionService interactionService, ILogger<VersionCheckService> logger,
Aspire.Hosting.Azure (13)
AzureEnvironmentResource.cs (4)
248var interactionService = context.Services.GetRequiredService<IInteractionService>(); 331var interactionService = context.Services.GetRequiredService<IInteractionService>();
AzureProvisioningController.cs (5)
661var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 1658var interactionService = serviceProvider.GetRequiredService<IInteractionService>(); 1737if (!intent.ReprovisionAfterReset || !serviceProvider.GetRequiredService<IInteractionService>().IsAvailable)
Provisioning\Internal\BaseProvisioningContextProvider.cs (2)
21IInteractionService interactionService, 36protected readonly IInteractionService _interactionService = interactionService;
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
21IInteractionService interactionService,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
22IInteractionService interactionService,
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
410var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.Azure.Tests (14)
AzureDeployerTests.cs (3)
1485IInteractionService? interactionService = null, 1828builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1893builder.Services.AddSingleton<IInteractionService>(testInteractionService);
AzureEnvironmentResourceExtensionsTests.cs (11)
399builder.Services.AddSingleton<IInteractionService>(testInteractionService); 440builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2762builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2818builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2875builder.Services.AddSingleton<IInteractionService>(testInteractionService); 2922builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3061builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3186builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3250builder.Services.AddSingleton<IInteractionService>(testInteractionService); 3430builder.Services.AddSingleton<IInteractionService>(testInteractionService); 4106builder.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)
654var interactionService = context.Services.GetRequiredService<IInteractionService>(); 841var interactionService = context.Services.GetRequiredService<IInteractionService>();
LoggedOutNotificationManager.cs (1)
8internal sealed class LoggedOutNotificationManager(IInteractionService interactionService) : CoalescingAsyncOperation
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
511builder.Services.AddSingleton<IInteractionService>(interactionService); 601builder.Services.AddSingleton<IInteractionService>(interactionService); 642builder.Services.AddSingleton<IInteractionService>(interactionService);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
517var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.EntityFrameworkCore (3)
EFResourceBuilderExtensions.cs (3)
831Func<EFCoreOperationExecutor, ILogger, IInteractionService?, Task<ExecuteCommandResult>> executeOperation) 835var interactionService = context.Services.GetService<IInteractionService>();
Aspire.Hosting.Kubernetes (2)
Deployment\HelmDeploymentEngine.cs (2)
677var interactionService = context.Services.GetRequiredService<IInteractionService>();
Aspire.Hosting.Testing.Tests (1)
DashboardTestingBuilderTests.cs (1)
104Assert.False(app.Services.GetRequiredService<IInteractionService>().IsAvailable);
Aspire.Hosting.Tests (17)
Orchestrator\ParameterProcessorTests.cs (1)
1266IInteractionService? interactionService = null,
RequiredCommandAnnotationTests.cs (3)
388builder.Services.AddSingleton<IInteractionService>(testInteractionService); 420builder.Services.AddSingleton<IInteractionService>(testInteractionService); 444builder.Services.AddSingleton<IInteractionService>(testInteractionService);
ResourceCommandServiceTests.cs (12)
1263builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1319builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1391builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1445var interactionService = e.Services.GetRequiredService<IInteractionService>(); 1475var interactionService = e.Services.GetRequiredService<IInteractionService>(); 1483var baselineIsAvailable = app.Services.GetRequiredService<IInteractionService>().IsAvailable; 1730builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1775builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1826builder.Services.AddSingleton<IInteractionService>(testInteractionService); 1859builder.Services.AddSingleton<IInteractionService>(testInteractionService);
VersionChecking\VersionCheckServiceTests.cs (1)
391IInteractionService? interactionService = null,
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
37var 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>();