13 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)
210var branch = string.Equals(staticCondition, expr.MatchValue, StringComparison.OrdinalIgnoreCase) 221new BinaryExpression(ResolveValue(conditionVal).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression(expr.MatchValue!)),
Aspire.Hosting.Azure.AppContainers (2)
BaseContainerAppContext.cs (2)
305var branch = string.Equals(staticCondition, expr.MatchValue, StringComparison.OrdinalIgnoreCase) 316new BinaryExpression(BicepFunction.ToLower(ResolveValue(conditionVal).Compile()).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression((expr.MatchValue ?? string.Empty).ToLowerInvariant())),
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceWebsiteContext.cs (2)
214var branch = string.Equals(staticCondition, expr.MatchValue, StringComparison.OrdinalIgnoreCase) 225new 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.Kubernetes (2)
KubernetesResource.cs (2)
447var branch = string.Equals(conditionStr, expr.MatchValue, StringComparison.OrdinalIgnoreCase) 510var escapedMatch = (expr.MatchValue ?? string.Empty).ToLowerInvariant().Replace("\\", "\\\\").Replace("\"", "\\\"");