ReliableSessionBindingElement.InactivityTimeout Property

Definition

Gets or sets an interval of time that a service remains inactive before closing.

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

Property Value

The TimeSpan that specifies the interval of time that a service remains inactive before closing. The default value is 10 minutes.

Exceptions

The value set is less than or equal to zero or greater than either Int32.MaxValue or TimeSpan.MaxValue.

Remarks

Activity on a channel is defined as receiving an application or infrastructure message. The inactivity timeout parameter controls the maximum amount of time to keep an inactive session alive. If more than InactivityTimeout time interval passes with no activity, the session is aborted by the infrastructure and the channel faults. The reliable session is torn down unilaterally.

If the sending application has no messages to send then the reliable session is normally not faulted because of inactivity; instead a keep-alive mechanism keeps the session active indefinitely. Note that the dispatcher can independently abort the reliable session if no application messages are sent or received. Thus, the inactivity timeout typically expires if network conditions are such that no messages are received or if there is a failure on the sender.

Applies to