ApplicationPoolFailure.RapidFailProtectionInterval Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the interval of time before the failure count for a process is reset.
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
Property Value
A TimeSpan value that indicates the interval of time before the failure count for a process is reset. The default is 5 minutes.
Examples
The following example displays the value of the RapidFailProtectionInterval property. If the RapidFailProtection property value is true
, this example sets the RapidFailProtectionInterval and RapidFailProtectionMaxCrashes property values. This code example is part of a larger example provided for the ApplicationPoolFailure class.
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();
Remarks
This property specifies the number of minutes before the failure count for a process is reset.