Share via


DataCacheFactoryConfiguration.ChannelOpenTimeout Property

Gets or sets the length of time that the cache client waits to establish a network connection with the server.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Usage

'Usage
Dim instance As DataCacheFactoryConfiguration
Dim value As TimeSpan

value = instance.ChannelOpenTimeout

instance.ChannelOpenTimeout = value

Syntax

'Declaration
Public Property ChannelOpenTimeout As TimeSpan
public TimeSpan ChannelOpenTimeout { get; set; }
public:
property TimeSpan ChannelOpenTimeout {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public TimeSpan get_ChannelOpenTimeout ()

/** @property */
public void set_ChannelOpenTimeout (TimeSpan value)
public function get ChannelOpenTimeout () : TimeSpan

public function set ChannelOpenTimeout (value : TimeSpan)

Property Value

A TimeSpan object..

Remarks

In some cases, it is useful to set ChannelOpenTimeout to 0. This means that any problems with the connection will immediately fail. The code can then handle the failure. For example, it could retry or fall back to an alternate data source. For more information, see Handling Errors (AppFabric Cache Client).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCacheFactoryConfiguration Class
DataCacheFactoryConfiguration Members
Microsoft.ApplicationServer.Caching Namespace

Other Resources

Configuring Cache Client Timeouts

  2011-08-26