Skip to content
DocsTry Aspire
DocsTry

EndpointReference.getTlsValue

Method
📦 Aspire.Hosting v13.4.0
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
enabledValueReferenceExpression
disabledValueReferenceExpression
ReferenceExpression

Defined on

This method is defined on the following type: