PingFrequency Property

ProcessModelSection.PingFrequency Property

 

Gets or sets a value indicating the time interval at which the ISAPI extension pings the worker process to determine whether it is running.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("pingFrequency", DefaultValue = "10675199.02:48:05.4775807")]
[TypeConverterAttribute(typeof(InfiniteTimeSpanConverter))]
public TimeSpan PingFrequency { get; set; }

Property Value

Type: System.TimeSpan

The TimeSpan defining the time interval. The default is 30 seconds.

The worker process is restarted (bounced) if it is not running after the PingFrequency interval has expired.

The following code example shows how to access the PingFrequency property.


// Get the current PingFrequency property value.
TimeSpan pingFreq = 
    processModelSection.PingFrequency;

// Set the PingFrequency property to
// TimeSpan.Parse("00:01:00").
processModelSection.PingFrequency = 
    TimeSpan.Parse("00:01:00");

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft