2 interfaces inheriting from IValueProvider
Aspire.Hosting (1)
ApplicationModel\IResourceWithConnectionString.cs (1)
9public interface IResourceWithConnectionString : IResource, IManifestExpressionProvider, IValueProvider, IValueWithReferences
Aspire.Hosting.Azure (1)
IAzureKeyVaultSecretReference.cs (1)
11public interface IAzureKeyVaultSecretReference : IValueProvider, IManifestExpressionProvider, IValueWithReferences
11 implementations of IValueProvider
Aspire.Hosting (6)
ApplicationModel\ConnectionStringReference.cs (1)
8public class ConnectionStringReference(IResourceWithConnectionString resource, bool optional) : IManifestExpressionProvider, IValueProvider, IValueWithReferences
ApplicationModel\EndpointReference.cs (2)
11public sealed class EndpointReference : IManifestExpressionProvider, IValueProvider, IValueWithReferences 149public class EndpointReferenceExpression(EndpointReference endpointReference, EndpointProperty property) : IManifestExpressionProvider, IValueProvider, IValueWithReferences
ApplicationModel\HostUrl.cs (1)
10public record HostUrl(string Url) : IValueProvider, IManifestExpressionProvider
ApplicationModel\ParameterResource.cs (1)
9public class ParameterResource : Resource, IResourceWithoutLifetime, IManifestExpressionProvider, IValueProvider
ApplicationModel\ReferenceExpression.cs (1)
13public class ReferenceExpression : IManifestExpressionProvider, IValueProvider, IValueWithReferences
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (2)
308public sealed class BicepSecretOutputReference(string name, AzureBicepResource resource) : IManifestExpressionProvider, IValueProvider, IValueWithReferences 362public sealed class BicepOutputReference(string name, AzureBicepResource resource) : IManifestExpressionProvider, IValueProvider, IValueWithReferences, IEquatable<BicepOutputReference>
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultSecretReference.cs (1)
13internal sealed class AzureKeyVaultSecretReference(string secretName, AzureKeyVaultResource azureKeyVaultResource) : IAzureKeyVaultSecretReference, IValueProvider, IManifestExpressionProvider
Aspire.Hosting.Tests (2)
ExpressionResolverTests.cs (1)
203sealed class TestValueProviderResource(string name) : Resource(name), IValueProvider
ReferenceExpressionTests.cs (1)
96private sealed class Value : IValueProvider, IManifestExpressionProvider
54 references to IValueProvider
Aspire.Hosting (44)
ApplicationModel\ConnectionStringReference.cs (1)
24async ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\EndpointReference.cs (1)
44ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => new(Url);
ApplicationModel\ExpressionResolver.cs (4)
104async Task<ResolvedValue> EvalValueProvider(IValueProvider vp) 183IValueProvider vp => await EvalValueProvider(vp).ConfigureAwait(false), 188static async ValueTask<ResolvedValue> ResolveWithContainerSourceAsync(IValueProvider valueProvider, string containerHostName, bool sourceIsContainer, CancellationToken cancellationToken) 200internal static async ValueTask<ResolvedValue> 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)
77ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => new(Value);
ApplicationModel\ReferenceExpression.cs (23)
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; } 73internal static ReferenceExpression Create(string format, IValueProvider[] valueProviders, string[] manifestExpressions) 90/// instances of types that implement both <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 99private readonly List<IValueProvider> _valueProviders = new(formattedCount); 127/// Appends a formatted value to the expression. The value must implement <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 129/// <param name="valueProvider">An instance of an object which implements <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>.</param> 131public void AppendFormatted<T>(T valueProvider) where T : IValueProvider, IManifestExpressionProvider 141/// Appends a formatted value to the expression. The value must implement <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 143/// <param name="valueProvider">An instance of an object which implements <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>.</param> 146where T : IResource, IValueProvider, IManifestExpressionProvider 206private readonly List<IValueProvider> _valueProviders = new(); 241/// Appends a formatted value to the expression. The value must implement <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 243/// <param name="valueProvider">An instance of an object which implements <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>.</param> 245public void AppendFormatted<T>(T valueProvider) where T : IValueProvider, IManifestExpressionProvider 262/// instances of types that implement both <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 291/// Appends a formatted value to the expression. The value must implement <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 293/// <param name="valueProvider">An instance of an object which implements <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>.</param> 295public void AppendFormatted<T>(T valueProvider) where T : IValueProvider, IManifestExpressionProvider 301/// Appends a formatted value to the expression. The value must implement <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>. 303/// <param name="valueProvider">An instance of an object which implements <see cref="IValueProvider"/> and <see cref="IManifestExpressionProvider"/>.</param> 306where T : IResource, IValueProvider, IManifestExpressionProvider
ApplicationModel\ResourceExtensions.cs (8)
161/// and environment variables were provided from <see cref="IValueProvider"/> otherwise it will be synchronous. 215/// and arguments were provided from <see cref="IValueProvider"/> otherwise it will be synchronous. 303(DistributedApplicationOperation.Run, IValueProvider provider) => await GetValue(key: null, provider, logger, resource.IsContainer(), containerHostName, cancellationToken).ConfigureAwait(false), 304(DistributedApplicationOperation.Run, IResourceBuilder<IResource> rb) when rb.Resource is IValueProvider provider => await GetValue(key: null, provider, logger, resource.IsContainer(), containerHostName, cancellationToken).ConfigureAwait(false), 362(DistributedApplicationOperation.Run, IValueProvider provider) => await GetValue(key, provider, logger, resource.IsContainer(), containerHostName, cancellationToken).ConfigureAwait(false), 363(DistributedApplicationOperation.Run, IResourceBuilder<IResource> rb) when rb.Resource is IValueProvider provider => await GetValue(key, provider, logger, resource.IsContainer(), containerHostName, cancellationToken).ConfigureAwait(false), 409IValueProvider valueProvider => (await GetValue(key: null, valueProvider, logger, resource.IsContainer(), containerHostName, cancellationToken).ConfigureAwait(false))?.Value, 427private static async Task<ResolvedValue?> GetValue(string? key, IValueProvider valueProvider, ILogger logger, bool isContainer, string? containerHostName, CancellationToken cancellationToken)
Dcp\DcpExecutor.cs (2)
1306IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 1336IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
Orchestrator\ApplicationOrchestrator.cs (2)
245async Task ProcessValueAsync(IResource resource, IValueProvider vp) 278if (resource is IValueProvider provider)
Aspire.Hosting.Azure (3)
AzureResourcePreparer.cs (1)
444foreach (var vp in expr.ValueProviders)
Provisioning\Provisioners\BicepProvisioner.cs (2)
479IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false), 496IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
567foreach (var vp in expr.ValueProviders)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
171foreach (var vp in expr.ValueProviders)
Aspire.Hosting.Azure.KeyVault (2)
AzureKeyVaultSecretReference.cs (1)
27async ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
AzureKeyVaultSecretResource.cs (1)
50ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) =>
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
69foreach (var vp in expr.ValueProviders)
Aspire.Hosting.Kubernetes (1)
KubernetesServiceResourceExtensions.cs (1)
75foreach (var vp in expr.ValueProviders)
Aspire.Hosting.Tests (1)
ExpressionResolverTests.cs (1)
53public record ExpressionResolverTestData(bool SourceIsContainer, IValueProvider ValueProvider);