19 references to Condition
Aspire.Hosting (5)
ApplicationModel\ExpressionResolver.cs (1)
15var conditionResult = await ResolveInternalAsync(expr.Condition!, context).ConfigureAwait(false);
ApplicationModel\ReferenceExpression.cs (4)
24/// expressions based on the string value of a <see cref="Condition"/>. Created via 115/// Gets the expression to evaluate when <see cref="Condition"/> evaluates to <see cref="MatchValue"/>, 121/// Gets the expression to evaluate when <see cref="Condition"/> does not evaluate to <see cref="MatchValue"/>, 127/// Gets the value that <see cref="Condition"/> is compared against to select the <see cref="WhenTrue"/> branch,
Aspire.Hosting.Azure (1)
AzurePublishingContext.cs (1)
246var conditionVal = Eval(expr.Condition!);
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
330var (conditionVal, _) = ProcessValue(expr.Condition!, secretType, parent: expr);
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
269var (conditionVal, _) = ProcessValue(expr.Condition!, secretType, parent: expr, isSlot);
Aspire.Hosting.Azure.Sandboxes (1)
AzureSandboxContainerDeployment.cs (1)
1258var condition = await ResolveValueAsync(context, resource, expression.Condition).ConfigureAwait(false);
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
66var conditionStr = await expr.Condition!.GetValueAsync(default).ConfigureAwait(false);
Aspire.Hosting.Foundry (2)
HostedAgent\AzureHostedAgentResource.cs (2)
393IsHostedAgentTargetPortValue(referenceExpression.Condition, hostedAgent) || 457var conditionValue = await ResolveValueProviderAsync(expression.Condition!, context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
620if (expr.Condition is ParameterResource conditionParam) 627var conditionStr = await expr.Condition!.GetValueAsync(conditionContext, default).ConfigureAwait(false);
Aspire.Hosting.Radius (5)
Publishing\RadiusInfrastructureBuilder.cs (5)
4361if (expression.Condition is EndpointReference or EndpointReferenceExpression) 4364await ResolveEnvPartsAsync(expression.Condition, owner, conditionParts, referencedResource, allowRecipeSubstitutions).ConfigureAwait(false); 4385conditionValue = await expression.Condition!.GetValueAsync(conditionContext, _cancellationToken).ConfigureAwait(false); 4404(ex is InvalidOperationException && IsDeploymentSubstituted(expression.Condition))) 4541return IsDeploymentSubstituted(conditional.Condition, visited) ||