Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PollingDuplexHttpBinding.InactivityTimeout Property

Silverlight

Gets or sets the maximum interval of time that can pass without activity on a channel before the client or server channel enters a faulted state. The default value is 10 minutes.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel.PollingDuplex (in System.ServiceModel.PollingDuplex.dll)
public TimeSpan InactivityTimeout { get; set; }

Property Value

Type: System.TimeSpan
The TimeSpan value that specifies the maximum interval of time that can pass without activity on a channel before the channel enters a faulted state.
ExceptionCondition
ArgumentOutOfRangeException

The value is less than zero, or it is larger than the maximum time allowed.

Activity in this context is defined as completed sends or messages being queued for receive.

If a channel has received a CloseSession message from the remote endpoint, the channel is in a half-closed state in which it can still send messages. As a consequence, if Send calls are the only remaining activity, the channel faults when an InactivityTimeout() interval of time passes after the last Send call.


PollingDuplexHttpBinding pollingDuplexBinding = new PollingDuplexHttpBinding();
BindingElementCollection bindingEC = pollingDuplexBinding.CreateBindingElements();
//Check on binding elements contained in the collection
bool boolHTBE = bindingEC.Contains(typeof(HttpTransportBindingElement));
//Returns true
string txtboolHTBE = boolHTBE.ToString();
bool boolHSTBE = bindingEC.Contains(typeof(HttpsTransportBindingElement));
//Returns false
string txtboolHSTBE = boolHSTBE.ToString();


Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.