6 implementations of IsAvailable
Aspire.Hosting (1)
InteractionService.cs (1)
41public bool IsAvailable
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
25public bool IsAvailable { get; set; } = true;
Aspire.Hosting.Browsers.Tests (1)
tests\Shared\TestInteractionService.cs (1)
25public bool IsAvailable { get; set; } = true;
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\TestInteractionService.cs (1)
25public bool IsAvailable { get; set; } = true;
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TestInteractionService.cs (1)
25public bool IsAvailable { get; set; } = true;
Aspire.Hosting.Tests (1)
tests\Shared\TestInteractionService.cs (1)
25public bool IsAvailable { get; set; } = true;
34 references to IsAvailable
Aspire.Hosting (12)
ApplicationModel\RequiredCommandValidator.cs (1)
122if (_interactionService.IsAvailable)
ApplicationModel\ResourceCommandService.cs (2)
424if (!interactionService.IsAvailable) 701if (!interactionService.IsAvailable)
Ats\InteractionExports.cs (1)
47return interactionService.IsAvailable;
Dcp\DcpHost.cs (2)
164if (!_interactionService.IsAvailable) 537if (!_interactionService.IsAvailable)
Orchestrator\ParameterProcessor.cs (3)
65if (interactionService.IsAvailable && _unresolvedParameters.Count > 0) 155if (executionContext.IsRunMode && interactionService.IsAvailable && !parameterResource.Annotations.OfType<ResourceCommandAnnotation>().Any(a => a.Name.Equals(KnownResourceCommands.SetParameterCommand, StringComparisons.CommandName))) 172if (interactionService.IsAvailable && ex is MissingParameterValueException)
Pipelines\DistributedApplicationPipeline.cs (2)
90if (interactionService.IsAvailable) 174if (interactionService?.IsAvailable == true)
VersionChecking\VersionCheckService.cs (1)
55if (!_interactionService.IsAvailable || _executionContext.IsPublishMode || _configuration.GetBool(KnownConfigNames.VersionCheckDisabled, defaultValue: false))
Aspire.Hosting.Azure (6)
AzureEnvironmentResource.cs (1)
249if (!interactionService.IsAvailable)
AzureProvisioningController.cs (3)
662if (!interactionService.IsAvailable) 1659if (!interactionService.IsAvailable || 1737if (!intent.ReprovisionAfterReset || !serviceProvider.GetRequiredService<IInteractionService>().IsAvailable)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (2)
73if (!_interactionService.IsAvailable) 130if (!_interactionService.IsAvailable)
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
411if (interactionService.IsAvailable)
Aspire.Hosting.Browsers (1)
BrowserLogsBuilderExtensions.cs (1)
227return interactionService.IsAvailable
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
227return interactionService.IsAvailable
Aspire.Hosting.DevTunnels (4)
DevTunnelLoginManager.cs (1)
52if (_interactionService.IsAvailable)
DevTunnelResourceBuilderExtensions.cs (2)
620return interactionService.IsAvailable && 807if (!interactionService.IsAvailable)
LoggedOutNotificationManager.cs (1)
14if (interactionService.IsAvailable)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
491if (!interactionService.IsAvailable)
Aspire.Hosting.EntityFrameworkCore (3)
EFResourceBuilderExtensions.cs (3)
929if (interaction != null && interaction.IsAvailable) 971if (interactionService != null && interactionService.IsAvailable) 1009if (interactionService != null && interactionService.IsAvailable)
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
642if (!interactionService.IsAvailable)
Aspire.Hosting.Testing.Tests (1)
DashboardTestingBuilderTests.cs (1)
104Assert.False(app.Services.GetRequiredService<IInteractionService>().IsAvailable);
Aspire.Hosting.Tests (3)
ResourceCommandServiceTests.cs (3)
1446isAvailableDuringExecution = interactionService.IsAvailable; 1476isAvailableDuringExecution = interactionService.IsAvailable; 1483var baselineIsAvailable = app.Services.GetRequiredService<IInteractionService>().IsAvailable;