10 instantiations of ResolvedValue
Aspire.Hosting (10)
ApplicationModel\ExpressionResolver.cs (5)
64return new ResolvedValue(value, isSensitive); 72return new ResolvedValue(value, pr.Secret); 74return new ResolvedValue(value, false); 104EndpointReference er when networkContext == KnownNetworkIdentifiers.DefaultAspireContainerNetwork => new ResolvedValue(await ResolveInContainerContextAsync(er, EndpointProperty.Url, context).ConfigureAwait(false), false), 105EndpointReferenceExpression ep when networkContext == KnownNetworkIdentifiers.DefaultAspireContainerNetwork => new ResolvedValue(await ResolveInContainerContextAsync(ep.Endpoint, ep.Property, context).ConfigureAwait(false), false),
ApplicationModel\ResourceExtensions.cs (5)
537(_, string s) => new(s, false), 540(DistributedApplicationOperation.Publish, IManifestExpressionProvider provider) => new(provider.ValueExpression, false), 541(DistributedApplicationOperation.Publish, IResourceBuilder<IResource> rb) when rb.Resource is IManifestExpressionProvider provider => new(provider.ValueExpression, false), 542(_, { } o) => new(o.ToString(), false), 543(_, null) => new(null, false),
20 references to ResolvedValue
Aspire.Hosting (17)
ApplicationModel\ExpressionResolver.cs (7)
37async Task<ResolvedValue> EvalExpressionAsync(ReferenceExpression expr, ValueProviderContext context) 46var result = await ResolveInternalAsync(expr.ValueProviders[i], context).ConfigureAwait(false); 67async Task<ResolvedValue> EvalValueProvider(IValueProvider vp, ValueProviderContext context) 77async Task<ResolvedValue> ResolveConnectionStringReferenceAsync(ConnectionStringReference cs, ValueProviderContext context) 82var value = await ResolveInternalAsync(cs.Resource.ConnectionStringExpression, context).ConfigureAwait(false); 96async ValueTask<ResolvedValue> ResolveInternalAsync(object? value, ValueProviderContext context) 111internal static async ValueTask<ResolvedValue> ResolveAsync(IValueProvider valueProvider, ValueProviderContext context, CancellationToken cancellationToken)
ApplicationModel\ResourceExtensions.cs (6)
301var resolvedValue = await resource.ResolveValueAsync(executionContext, logger, a, null, cancellationToken).ConfigureAwait(false); 349var resolvedValue = await resource.ResolveValueAsync(executionContext, logger, expr, key, cancellationToken).ConfigureAwait(false); 494var resolvedValue = await resource.ResolveValueAsync(executionContext, logger, a, null, cancellationToken).ConfigureAwait(false); 511var resolvedValue = await resource.ResolveValueAsync(executionContext, logger, expr, key, cancellationToken).ConfigureAwait(false); 527internal static async ValueTask<ResolvedValue?> ResolveValueAsync( 598private static async Task<ResolvedValue?> GetValue(this IResource resource, DistributedApplicationExecutionContext executionContext, string? key, IValueProvider valueProvider, ILogger logger, CancellationToken cancellationToken)
Dcp\DcpExecutor.cs (4)
2594var resolvedValue = await modelResource.ResolveValueAsync(_executionContext, resourceLogger, a, key: null, cancellationToken: cancellationToken).ConfigureAwait(false); 2611var resolvedValue = await modelResource.ResolveValueAsync(_executionContext, resourceLogger, expr, key, cancellationToken: cancellationToken).ConfigureAwait(false); 2730var resolvedValue = await modelResource.ResolveValueAsync(_executionContext, resourceLogger, a, key: null, cancellationToken: cancellationToken).ConfigureAwait(false); 2747var resolvedValue = await modelResource.ResolveValueAsync(_executionContext, resourceLogger, expr, key, cancellationToken: cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (3)
ExpressionResolverTests.cs (3)
28var resolvedValue = await ExpressionResolver.ResolveAsync(testData.ValueProvider, context, CancellationToken.None); 34async Task<ResolvedValue> ResolveAsync() => await ExpressionResolver.ResolveAsync(testData.ValueProvider, context, CancellationToken.None); 137var connectionString = await ExpressionResolver.ResolveAsync(csRef, context, CancellationToken.None).DefaultTimeout();