Bewerken

Delen via


HttpTransportBindingElement.MaxPendingAccepts Property

Definition

Gets or sets the maximum number of connections the service can accept simultaneously.

public:
 property int MaxPendingAccepts { int get(); void set(int value); };
public int MaxPendingAccepts { get; set; }
member this.MaxPendingAccepts : int with get, set
Public Property MaxPendingAccepts As Integer

Property Value

The maximum number of connections the service can accept simultaneously.

Remarks

The default value of MaxPendingAccepts is 0, which means WCF will configure the value for you. You can increase the number for better scalability. In the self-hosted case, this property controls the maximum number of simultaneous BeginGetContext calls WCF will invoke. Each time BeginGetContext is called some memory is pinned within the managed heap for buffering. If too many buffers are pinned, excessive heap fragmentation may result. This property is ignored in the web-hosted case.

Applies to