LocalServiceSecuritySettings::InactivityTimeout Property
Gets or sets the duration to wait before the channel is closed due to inactivity.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The property is set to a value less than 0. |
In a secure conversation session, note that both this property and the ReceiveTimeout property on the binding affect session timeout. The shorter of the two determines when timeouts occur.
Session settings such as this one are applicable under any of the following conditions:
All client credential types for WSDualHttpBinding and NetTcpBinding.
If <reliableSession> element is enabled.
If <reliableSession> element is not enabled, on WSHttpBinding with UserName = true or P:System.ServiceModel.Description.ClientCredentials.windows = true.
Session settings such as this one are not applicable under any of the following conditions:
For BasicHttpBinding.
For NetNamedPipeBinding.
If <reliableSession> element is not enabled, on WSHttpBinding with ClientCertificate = true or with none of the ClientCredentials properties set to true.
Available since 3.0