Skip to content
Docs Try Aspire

EndpointReference.getTlsValue

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

Signature

method getTlsValue
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
enabledValue ReferenceExpression
disabledValue ReferenceExpression
ReferenceExpression

Defined on

This method is defined on the following type: