Udostępnij za pośrednictwem


ProcessModelSection.RestartQueueLimit Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą maksymalną liczbę żądań w kolejce przez interfejs ISAPI podczas oczekiwania na rozpoczęcie obsługi żądań przez nowy proces roboczy.

public:
 property int RestartQueueLimit { int get(); void set(int value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))]
[System.Configuration.ConfigurationProperty("restartQueueLimit", DefaultValue=10)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int RestartQueueLimit { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))>]
[<System.Configuration.ConfigurationProperty("restartQueueLimit", DefaultValue=10)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.RestartQueueLimit : int with get, set
Public Property RestartQueueLimit As Integer

Wartość właściwości

Int32

Liczba żądań w kolejce. Wartość domyślna to 10.

Atrybuty

Przykłady

Poniższy przykład kodu pokazuje, jak uzyskać dostęp RestartQueueLimit do właściwości.


// Get the current RestartQueueLimit property value.
int restartQueueLimit = 
    processModelSection.RestartQueueLimit;

// Set the RestartQueueLimit property to 8.
processModelSection.RestartQueueLimit = 8;
' Get the current RestartQueueLimit property value.
   Dim restartQueueLimit As Integer = _
   processModelSection.RestartQueueLimit

' Set the RestartQueueLimit property to 8.
processModelSection.RestartQueueLimit = 8

Uwagi

Po przekroczeniu tego limitu żądanie klienta otrzyma błąd 503, dopóki proces roboczy nie będzie gotowy.

Dotyczy