ServiceThrottlingElement.MaxConcurrentSessions Właściwość

Definicja

Pobiera lub ustawia wartość określającą maksymalną liczbę współbieżnych połączeń z pojedynczą usługą.

public:
 property int MaxConcurrentSessions { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxConcurrentSessions", DefaultValue=10)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int MaxConcurrentSessions { get; set; }
[System.Configuration.IntegerValidator(MinValue=1)]
[System.Configuration.ConfigurationProperty("maxConcurrentSessions", DefaultValue=100)]
public int MaxConcurrentSessions { get; set; }
[<System.Configuration.ConfigurationProperty("maxConcurrentSessions", DefaultValue=10)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.MaxConcurrentSessions : int with get, set
[<System.Configuration.IntegerValidator(MinValue=1)>]
[<System.Configuration.ConfigurationProperty("maxConcurrentSessions", DefaultValue=100)>]
member this.MaxConcurrentSessions : int with get, set
Public Property MaxConcurrentSessions As Integer

Wartość właściwości

Maksymalna liczba współbieżnych połączeń z jedną usługą. Wartość domyślna to Int32.MaxValue.

Atrybuty

Uwagi

Usługa akceptuje połączenia przekraczające limit. Jednak tylko kanały poniżej limitu są aktywne, a komunikaty są odczytywane tylko z aktywnych kanałów. Ustawienie tej właściwości na wartość 0 jest równoważne ustawieniu jej na MaxValuewartość .

Dotyczy