14 references to MatchValue
Aspire.Hosting (4)
ApplicationModel\ExpressionResolver.cs (1)
16var branch = string.Equals(conditionResult.Value, expr.MatchValue, StringComparison.OrdinalIgnoreCase) ? expr.WhenTrue! : expr.WhenFalse!;
ApplicationModel\ReferenceExpression.cs (3)
109/// Gets the condition value provider whose result is compared to <see cref="MatchValue"/>, 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"/>,
Aspire.Hosting.Azure (2)
AzurePublishingContext.cs (2)
220var branch = string.Equals(staticCondition, expr.MatchValue, StringComparison.OrdinalIgnoreCase) 231new BinaryExpression(ResolveValue(conditionVal).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression(expr.MatchValue!)),
Aspire.Hosting.Azure.AppContainers (2)
BaseContainerAppContext.cs (2)
320var branch = string.Equals(staticCondition, expr.MatchValue, StringComparison.OrdinalIgnoreCase) 331new BinaryExpression(BicepFunction.ToLower(ResolveValue(conditionVal).Compile()).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression((expr.MatchValue ?? string.Empty).ToLowerInvariant())),
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceWebsiteContext.cs (2)
247var branch = string.Equals(staticCondition, expr.MatchValue, StringComparison.OrdinalIgnoreCase) 258new BinaryExpression(BicepFunction.ToLower(ResolveValue(conditionVal).Compile()).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression((expr.MatchValue ?? string.Empty).ToLowerInvariant())),
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
68var branch = string.Equals(conditionStr, expr.MatchValue, StringComparison.OrdinalIgnoreCase)
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
436var branch = string.Equals(conditionValue, expression.MatchValue, StringComparison.OrdinalIgnoreCase) ? expression.WhenTrue! : expression.WhenFalse!;
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
604var branch = string.Equals(conditionStr, expr.MatchValue, StringComparison.OrdinalIgnoreCase) 678var matchValue = System.Text.Json.JsonSerializer.Serialize((expr.MatchValue ?? string.Empty).ToLowerInvariant());