ApplicationPoolFailure.LoadBalancerCapabilities Property

Definition

Gets or sets the response behavior of a service when it is unavailable.

C#
public Microsoft.Web.Administration.LoadBalancerCapabilities LoadBalancerCapabilities { get; set; }

Property Value

One of the LoadBalancerCapabilities values. The default is HttpLevel.

Examples

The following example displays the value of the LoadBalancerCapabilities property. This code example is part of a larger example provided for the ApplicationPoolFailure class.

C#
Console.WriteLine("LoadBalancerCapabilities:\t{0}",
    manager.ApplicationPoolDefaults.Failure.LoadBalancerCapabilities);

Remarks

This property specifies behavior when a worker process cannot be started (for example, when the request queue is full or an application pool is in rapid-fail protection).

A value of TcpLevel terminates the connection. The default value of HttpLevel sends error code 503 (Service Unavailable).

Applies to