ServiceClient.MaxConnectionTimeout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the maximum timeout for the connection.
public static TimeSpan MaxConnectionTimeout { get; set; }
static member MaxConnectionTimeout : TimeSpan with get, set
Public Shared Property MaxConnectionTimeout As TimeSpan
Property Value
Default is 4 minutes.
Remarks
This class-level static timeout value must be set before a ServiceClient class is instantiated. To have multiple ServiceClient instances with different timeout values, you must set the timeout value before creating each instance.
The timeout value is only read when creating a new ServiceClient instance. Changing the value afterwards does not affect any existing ServiceClient instances. To change the timeout value between message request calls, you must use a different instance configured with the desired new timeout value, or delete the existing instance and create a new instance.
This property can also be set in app.config or app.settings by the property MaxConnectionTimeOutMinutes.