1 interface inheriting from IValueProvider
Aspire.Hosting (1)
ApplicationModel\IResourceWithConnectionString.cs (1)
9public interface IResourceWithConnectionString : IResource, IManifestExpressionProvider, IValueProvider, IValueWithReferences
4 implementations of IValueProvider
Aspire.Hosting (4)
ApplicationModel\EndpointReference.cs (1)
11public sealed class EndpointReference : IManifestExpressionProvider, IValueProvider, IValueWithReferences
ApplicationModel\HostUrl.cs (1)
10public record HostUrl(string Url) : IValueProvider, IManifestExpressionProvider
ApplicationModel\ParameterResource.cs (1)
9public sealed class ParameterResource : Resource, IManifestExpressionProvider, IValueProvider
ApplicationModel\ReferenceExpression.cs (1)
13public class ReferenceExpression : IManifestExpressionProvider, IValueProvider, IValueWithReferences
36 references to IValueProvider
Aspire.Hosting (30)
ApplicationModel\ConnectionStringReference.cs (2)
8public class ConnectionStringReference(IResourceWithConnectionString resource, bool optional) : IManifestExpressionProvider, IValueProvider, IValueWithReferences 24async ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\EndpointReference.cs (2)
44ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => new(Url); 148public class EndpointReferenceExpression(EndpointReference endpointReference, EndpointProperty property) : IManifestExpressionProvider, IValueProvider, IValueWithReferences
ApplicationModel\ExpressionResolver.cs (4)
94async Task<string?> EvalValueProvider(IValueProvider vp) 147IValueProvider vp => await EvalValueProvider(vp).ConfigureAwait(false), 152static async ValueTask<string?> ResolveWithContainerSourceAsync(IValueProvider valueProvider, string containerHostName, CancellationToken cancellationToken) 164internal static async ValueTask<string?> ResolveAsync(bool sourceIsContainer, IValueProvider valueProvider, string containerHostName, CancellationToken cancellationToken)
ApplicationModel\HostUrl.cs (1)
16ValueTask<string?> IValueProvider.GetValueAsync(System.Threading.CancellationToken cancellationToken)
ApplicationModel\IResourceWithConnectionString.cs (1)
21ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => GetConnectionStringAsync(cancellationToken);
ApplicationModel\ParameterResource.cs (1)
66ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => new(Value);
ApplicationModel\ReferenceExpression.cs (9)
17private ReferenceExpression(string format, IValueProvider[] valueProviders, string[] manifestExpressions) 39/// The list of <see cref="IValueProvider"/> that will be used to resolve parameters for the format string. 41public IReadOnlyList<IValueProvider> ValueProviders { get; } 72internal static ReferenceExpression Create(string format, IValueProvider[] valueProviders, string[] manifestExpressions) 89/// instances of types that implement both <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 97private readonly List<IValueProvider> _valueProviders = new(formattedCount); 121/// Appends a formatted value to the expression. The value must implement <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 123/// <param name="valueProvider">An instance of an object which implements <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>.</param> 125public void AppendFormatted<T>(T valueProvider) where T : IValueProvider, IManifestExpressionProvider
ApplicationModel\ResourceExtensions.cs (2)
156/// and environment variables were provided from <see cref="IValueProvider"/> otherwise it will be synchronous. 206(DistributedApplicationOperation.Run, IValueProvider provider) => await provider.GetValueAsync().ConfigureAwait(false),
Dcp\ApplicationExecutor.cs (8)
1328IValueProvider valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: false, cancellationToken).ConfigureAwait(false), 1370IValueProvider valueProvider => await GetValue(c.Key, valueProvider, resourceLogger, isContainer: false, cancellationToken).ConfigureAwait(false), 1396private async Task<string?> GetValue(string? key, IValueProvider valueProvider, ILogger logger, bool isContainer, CancellationToken cancellationToken) 1647IValueProvider valueProvider => await GetValue(kvp.Key, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false), 1684IValueProvider valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false), 1717IValueProvider valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false), 1765IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 1794IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (2)
256public sealed class BicepSecretOutputReference(string name, AzureBicepResource resource) : IManifestExpressionProvider, IValueProvider, IValueWithReferences 310public sealed class BicepOutputReference(string name, AzureBicepResource resource) : IManifestExpressionProvider, IValueProvider, IValueWithReferences
Provisioning\Provisioners\BicepProvisioner.cs (1)
504IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
693foreach (var vp in expr.ValueProviders)
Aspire.Hosting.Tests (2)
Utils\ArgumentEvaluator.cs (1)
27IValueProvider valueProvider => await valueProvider.GetValueAsync().ConfigureAwait(false),
Utils\EnvironmentVariableEvaluator.cs (1)
38(DistributedApplicationOperation.Run, IValueProvider provider) => await ExpressionResolver.ResolveAsync(resource.IsContainer(), provider, containerHostName, CancellationToken.None),