Freigeben über


ServiceClient.MaxConnectionTimeout Property

Definition

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.

Applies to