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
32 references to IValueProvider
Aspire.Hosting (26)
ApplicationModel\ConnectionStringReference.cs (2)
8public class ConnectionStringReference(IResourceWithConnectionString resource, bool optional) : IManifestExpressionProvider, IValueProvider, IValueWithReferences 29async 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\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)
74/// and environment variables were provided from <see cref="IValueProvider"/> otherwise it will be synchronous. 124(DistributedApplicationOperation.Run, IValueProvider provider) => await provider.GetValueAsync().ConfigureAwait(false),
Dcp\ApplicationExecutor.cs (8)
1246IValueProvider valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: false, cancellationToken).ConfigureAwait(false), 1288IValueProvider valueProvider => await GetValue(c.Key, valueProvider, resourceLogger, isContainer: false, cancellationToken).ConfigureAwait(false), 1314private async Task<string?> GetValue(string? key, IValueProvider valueProvider, ILogger logger, bool isContainer, CancellationToken cancellationToken) 1561IValueProvider valueProvider => await GetValue(kvp.Key, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false), 1598IValueProvider valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false), 1631IValueProvider valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false), 1674IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 1703IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.AWS (1)
CloudFormation\StackOutputReference.cs (1)
13public class StackOutputReference(string name, ICloudFormationResource resource) : IManifestExpressionProvider, IValueProvider, IValueWithReferences
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (2)
244public class BicepSecretOutputReference(string name, AzureBicepResource resource) : IManifestExpressionProvider, IValueProvider, IValueWithReferences 298public class BicepOutputReference(string name, AzureBicepResource resource) : IManifestExpressionProvider, IValueProvider, IValueWithReferences
Provisioning\Provisioners\BicepProvisioner.cs (1)
504IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Tests (2)
Utils\ArgumentEvaluator.cs (1)
27IValueProvider valueProvider => await valueProvider.GetValueAsync().ConfigureAwait(false),
Utils\EnvironmentVariableEvaluator.cs (1)
37(DistributedApplicationOperation.Run, IValueProvider provider) => await provider.GetValueAsync().ConfigureAwait(false),