ReferenceExpression
Class net10.0
Represents an expression that might be made up of multiple resource properties. For example, a connection string might be made up of a host, port, and password from different endpoints.
namespace Aspire.Hosting.ApplicationModel;
public class ReferenceExpression : Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} 9 members
Properties5
Section titled PropertiesFormatgetstring The format string for this expression.
ManifestExpressionsgetIReadOnlyList<string> The manifest expressions for the parameters for the format string.
StringFormatsgetIReadOnlyList<string?> The string formats of the parameters, e.g. "uri".
ValueExpressiongetstring The value expression for the format string.
ValueProvidersget The list of
IValueProvider that will be used to resolve parameters for the format string. Methods3
Section titled MethodsCreate(ExpressionInterpolatedStringHandler)static Creates a new instance of
ReferenceExpression with the specified format and value providers. GetValueAsync(ValueProviderContext, CancellationToken)ValueTask<string?> Gets the value of the expression. The final string value after evaluating the format string and its parameters.
GetValueAsync(CancellationToken)ValueTask<string?> Gets the value of the expression. The final string value after evaluating the format string and its parameters.