PollingDuplexHttpBinding..::.InactivityTimeout Property Home
This page is specific to:Microsoft Version:Silverlight 3
.NET Framework Class Library for Silverlight
PollingDuplexHttpBinding..::.InactivityTimeout Property

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)
Syntax

'Usage

Dim instance As PollingDuplexHttpBinding
Dim value As TimeSpan

value = instance.InactivityTimeout

instance.InactivityTimeout = value

'Declaration

Public Property InactivityTimeout As TimeSpan
    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.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException

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

Remarks

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.

Examples

            Dim pollingDuplexBinding As New PollingDuplexHttpBinding()
            Dim bindingEC As BindingElementCollection = pollingDuplexBinding.CreateBindingElements()
            'Check on binding elements contained in the collection
            Dim boolHTBE As Boolean = bindingEC.Contains(GetType(HttpTransportBindingElement))
            'Returns true
            Dim txtboolHTBE As String = boolHTBE.ToString()
            Dim boolHSTBE As Boolean = bindingEC.Contains(GetType(HttpsTransportBindingElement))
            'Returns false
            Dim txtboolHSTBE As String = boolHSTBE.ToString()


Platforms

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

See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View