1 interface inheriting from IValueProvider
Aspire.Hosting (1)
ApplicationModel\IResourceWithConnectionString.cs (1)
9
public interface IResourceWithConnectionString : IResource, IManifestExpressionProvider,
IValueProvider
, IValueWithReferences
4 implementations of IValueProvider
Aspire.Hosting (4)
ApplicationModel\EndpointReference.cs (1)
11
public sealed class EndpointReference : IManifestExpressionProvider,
IValueProvider
, IValueWithReferences
ApplicationModel\HostUrl.cs (1)
10
public record HostUrl(string Url) :
IValueProvider
, IManifestExpressionProvider
ApplicationModel\ParameterResource.cs (1)
9
public sealed class ParameterResource : Resource, IManifestExpressionProvider,
IValueProvider
ApplicationModel\ReferenceExpression.cs (1)
13
public class ReferenceExpression : IManifestExpressionProvider,
IValueProvider
, IValueWithReferences
36 references to IValueProvider
Aspire.Hosting (30)
ApplicationModel\ConnectionStringReference.cs (2)
8
public class ConnectionStringReference(IResourceWithConnectionString resource, bool optional) : IManifestExpressionProvider,
IValueProvider
, IValueWithReferences
24
async ValueTask<string?>
IValueProvider
.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\EndpointReference.cs (2)
44
ValueTask<string?>
IValueProvider
.GetValueAsync(CancellationToken cancellationToken) => new(Url);
148
public class EndpointReferenceExpression(EndpointReference endpointReference, EndpointProperty property) : IManifestExpressionProvider,
IValueProvider
, IValueWithReferences
ApplicationModel\ExpressionResolver.cs (4)
94
async Task<string?> EvalValueProvider(
IValueProvider
vp)
147
IValueProvider
vp => await EvalValueProvider(vp).ConfigureAwait(false),
152
static async ValueTask<string?> ResolveWithContainerSourceAsync(
IValueProvider
valueProvider, string containerHostName, CancellationToken cancellationToken)
164
internal static async ValueTask<string?> ResolveAsync(bool sourceIsContainer,
IValueProvider
valueProvider, string containerHostName, CancellationToken cancellationToken)
ApplicationModel\HostUrl.cs (1)
16
ValueTask<string?>
IValueProvider
.GetValueAsync(System.Threading.CancellationToken cancellationToken)
ApplicationModel\IResourceWithConnectionString.cs (1)
21
ValueTask<string?>
IValueProvider
.GetValueAsync(CancellationToken cancellationToken) => GetConnectionStringAsync(cancellationToken);
ApplicationModel\ParameterResource.cs (1)
66
ValueTask<string?>
IValueProvider
.GetValueAsync(CancellationToken cancellationToken) => new(Value);
ApplicationModel\ReferenceExpression.cs (9)
17
private 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.
41
public IReadOnlyList<
IValueProvider
> ValueProviders { get; }
72
internal static ReferenceExpression Create(string format,
IValueProvider
[] valueProviders, string[] manifestExpressions)
89
/// instances of types that implement both <see cref="
IValueProvider
"/> and <see cref="IManifestExpressionProvider"/>.
97
private 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>
125
public 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)
1345
IValueProvider
valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: false, cancellationToken).ConfigureAwait(false),
1387
IValueProvider
valueProvider => await GetValue(c.Key, valueProvider, resourceLogger, isContainer: false, cancellationToken).ConfigureAwait(false),
1413
private async Task<string?> GetValue(string? key,
IValueProvider
valueProvider, ILogger logger, bool isContainer, CancellationToken cancellationToken)
1664
IValueProvider
valueProvider => await GetValue(kvp.Key, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false),
1701
IValueProvider
valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false),
1734
IValueProvider
valueProvider => await GetValue(key: null, valueProvider, resourceLogger, isContainer: true, cancellationToken).ConfigureAwait(false),
1782
IValueProvider
valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
1811
IValueProvider
valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (2)
256
public sealed class BicepSecretOutputReference(string name, AzureBicepResource resource) : IManifestExpressionProvider,
IValueProvider
, IValueWithReferences
310
public sealed class BicepOutputReference(string name, AzureBicepResource resource) : IManifestExpressionProvider,
IValueProvider
, IValueWithReferences
Provisioning\Provisioners\BicepProvisioner.cs (1)
505
IValueProvider
v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
693
foreach (
var
vp in expr.ValueProviders)
Aspire.Hosting.Tests (2)
Utils\ArgumentEvaluator.cs (1)
27
IValueProvider
valueProvider => await valueProvider.GetValueAsync().ConfigureAwait(false),
Utils\EnvironmentVariableEvaluator.cs (1)
38
(DistributedApplicationOperation.Run,
IValueProvider
provider) => await ExpressionResolver.ResolveAsync(resource.IsContainer(), provider, containerHostName, CancellationToken.None),