共用方式為


HttpRelayTransportBindingElement.KeepAliveEnabled Property

Definition

Gets or sets a value that indicates whether to make a persistent connection to a service endpoint.

public bool KeepAliveEnabled { get; set; }
member this.KeepAliveEnabled : bool with get, set
Public Property KeepAliveEnabled As Boolean

Property Value

true if the request to the service endpoint should contain a Connection HTTP header with the value Keep-alive; otherwise, false. The default is true.

Applies to