Поделиться через


ProcessModelSection.RestartQueueLimit Свойство

Определение

Возвращает или задает значение, указывающее максимальное количество запросов в очереди ISAPI при ожидании нового рабочего процесса для начала обработки запросов.

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

Значение свойства

Количество запросов в очереди. Значение по умолчанию равно 10.

Атрибуты

Примеры

В следующем примере кода показано, как осуществляется доступ к свойству RestartQueueLimit.


// 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

Комментарии

При превышении этого ограничения клиентский запрос будет получать ошибку 503, пока рабочий процесс не будет готов.

Применяется к