Class ConnectionCacheOptions
- Namespace
- IceRpc
- Assembly
- IceRpc.dll
Represents a property bag used to configure a ConnectionCache.
public record ConnectionCacheOptions : IEquatable<ConnectionCacheOptions>
- Inheritance
-
ConnectionCacheOptions
- Implements
- Inherited Members
Properties
ClientAuthenticationOptions
Gets or sets the SSL client authentication options.
public SslClientAuthenticationOptions? ClientAuthenticationOptions { get; set; }
Property Value
- SslClientAuthenticationOptions
The SSL client authentication options. When not null, ConnectAsync(CancellationToken) will either establish a secure connection or fail.
ConnectTimeout
Gets or sets the connection establishment timeout for connections created by the connection cache.
public TimeSpan ConnectTimeout { get; set; }
Property Value
- TimeSpan
The connection establishment timeout. Defaults to
10
seconds.
ConnectionOptions
Gets or sets the connection options used for connections created by the connection cache.
public ConnectionOptions ConnectionOptions { get; set; }
Property Value
- ConnectionOptions
The connection options. Defaults to a default constructed ConnectionOptions.
PreferExistingConnection
Gets or sets a value indicating whether or not the connection cache prefers an active connection over creating a new one.
public bool PreferExistingConnection { get; set; }
Property Value
- bool
When true, the connection cache first checks the server addresses of the target service address: if any matches an active connection it manages, it sends the request over this connection. It does not check connections being connected. When false, the connection cache does not prefer existing connections.
ShutdownTimeout
Gets or sets the shutdown timeout. This timeout is used when gracefully shutting down a connection managed by the connection cache.
public TimeSpan ShutdownTimeout { get; set; }
Property Value
- TimeSpan
This shutdown timeout. Defaults to
10
seconds.