Watch Aspire live streamsDocsTry Aspire

EndpointReference.getTlsValue

Method
📦 Aspire.Hosting v13.6.5
interface EndpointReference {
// ... omitted for brevity
getTlsValue(
enabledValue: ReferenceExpression,
disabledValue: ReferenceExpression): ReferenceExpression;
}

Signature

methodgetTlsValue
Gets a conditional expression that resolves to the enabledValue when TLS is enabled on the endpoint, or to the disabledValue otherwise.
getTlsValue(
enabledValue: ReferenceExpression,
disabledValue: ReferenceExpression): ReferenceExpression
enabledValueReferenceExpressionThe expression to evaluate when TLS is enabled (e.g., `",ssl=true"`).
disabledValueReferenceExpressionThe expression to evaluate when TLS is not enabled.
ReferenceExpression

Defined on

This method is defined on the following type: