ReferenceExpressionBuilder

Handle
📦 Aspire.Hosting v17.0.0
interface ReferenceExpressionBuilder {
readonly isEmpty: boolean;
appendFormatted(
value: string,
format?: string): void;
appendLiteral(value: string): void;
appendValueProvider(
valueProvider: any,
format?: string): void;
build(): ReferenceExpression;
}

Properties

propertyisEmptybooleanget
Indicates whether the expression is empty.

Methods

Appends a formatted value to the expression.
appendFormatted(
value: string,
format?: string): void
valuestringThe formatted string to be appended to the interpolated string.
formatstringoptionalThe format to be applied to the value. e.g., "uri"
Appends a literal value to the expression.
appendLiteral(value: string): void
valuestringThe literal string value to be appended to the interpolated string.
Appends a value provider to the reference expression
appendValueProvider(
valueProvider: any,
format?: string): void
valueProvideranyThe value provider to append.
formatstringoptionalOptional format specifier.
methodbuild
Builds the reference expression
build(): ReferenceExpression
ReferenceExpression