13 references to Condition
Aspire.Hosting (5)
ApplicationModel\ExpressionResolver.cs (1)
15
var 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)
215
var conditionVal = Eval(expr.
Condition
!);
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
308
var (conditionVal, _) = ProcessValue(expr.
Condition
!, secretType, parent: expr);
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
235
var (conditionVal, _) = ProcessValue(expr.
Condition
!, secretType, parent: expr, isSlot);
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
66
var conditionStr = await expr.
Condition
!.GetValueAsync(default).ConfigureAwait(false);
Aspire.Hosting.Foundry (2)
HostedAgent\AzureHostedAgentResource.cs (2)
371
IsHostedAgentTargetPortValue(referenceExpression.
Condition
, hostedAgent) ||
435
var conditionValue = await ResolveValueProviderAsync(expression.
Condition
!, context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
595
if (expr.
Condition
is ParameterResource conditionParam)
602
var conditionStr = await expr.
Condition
!.GetValueAsync(conditionContext, default).ConfigureAwait(false);