ServiceHealthBehaviorBase.HttpsGetEnabled 属性

定义

获取或设置一个值,该值指定是否使用 HTTPS/Get 请求发布服务元数据进行检索。

public:
 property bool HttpsGetEnabled { bool get(); void set(bool value); };
public bool HttpsGetEnabled { get; set; }
member this.HttpsGetEnabled : bool with get, set
Public Property HttpsGetEnabled As Boolean

属性值

一个值,该值指定是否使用 HTTPS/Get 请求发布服务元数据进行检索。 默认值为 true

注解

如果未指定属性 httpsGetUrl ,则发布元数据的地址是服务地址加上“?health”。 例如,如果服务地址为 https://localhost:8080/CalculatorService,则 HTTP/Get 元数据地址为 https://localhost:8080/CalculatorService?health

如果此属性是 false,或者服务的地址不是基于 HTTP 或 HTTPS,则忽略“?health”。

适用于