LocalServiceSecuritySettings.MaxStatefulNegotiations Property

Definition

Gets or sets the maximum number of concurrent security negotiations with clients that the service can participate in.

C#
public int MaxStatefulNegotiations { get; set; }

Property Value

The maximum number of concurrent security negotiations with clients that the service can participate in. The default is 128.

Exceptions

The property is set to a value less than 0.

Examples

This example shows how set the MaxStatefulNegotiations value.

C#
int maxStatefulNegotiationsNegotiations =
    settings.MaxStatefulNegotiations;

Remarks

Negotiation sessions in excess of this limit are rejected and a SOAP fault is sent back to the client. The client typically must retry later, which allows some time for existing negotiations on the service to complete.

Applies to

제품 버전
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1