다음을 통해 공유


ApplicationPoolFailure.RapidFailProtectionInterval 속성

정의

프로세스의 실패 횟수가 다시 설정되기 전의 시간 간격을 가져오거나 설정합니다.

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

속성 값

TimeSpan 프로세스의 실패 횟수가 다시 설정되기 전의 시간 간격을 나타내는 값입니다. 기본값은 5분입니다.

예제

다음 예제에서는 값을 표시 합니다 속성입니다 RapidFailProtectionInterval . 속성 값이 이 RapidFailProtection 면 이 예제에서는 trueRapidFailProtectionIntervalRapidFailProtectionMaxCrashes 속성 값을 설정합니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 ApplicationPoolFailure 클래스입니다.

Console.WriteLine("RapidFailProtectionInterval:\t{0}",
    manager.ApplicationPoolDefaults.Failure.RapidFailProtectionInterval);
// If the RapidFailProtection is enabled, set 
// the Interval and maximum crashes properties.
if (manager.ApplicationPoolDefaults.Failure.RapidFailProtection)
{
    manager.ApplicationPoolDefaults.Failure.
        RapidFailProtectionInterval = (TimeSpan.FromMinutes(10));
    manager.ApplicationPoolDefaults.Failure.
        RapidFailProtectionMaxCrashes = 6;
}
// Commit the changes to ApplicationHost.config file.
manager.CommitChanges();

설명

이 속성은 프로세스의 실패 횟수가 다시 설정되기까지의 시간(분)을 지정합니다.

적용 대상