Skip to content

Commit 0c43970

Browse files
author
Zhen
committed
Merge branch '1.2' into 1.3
2 parents 17cc5de + 5fe27d7 commit 0c43970

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Neo4j.Driver/Neo4j.Driver/V1/Config.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static Config()
134134
/// Any negative <see cref="TimeSpan"/> value will be considered to be "Infinite",
135135
/// a.k.a. pooled connections will never be stale.
136136
/// </summary>
137-
public TimeSpan ConnectionIdleTimeout { get; set; } = Infinite;
137+
internal TimeSpan ConnectionIdleTimeout { get; set; } = Infinite;
138138

139139
/// <summary>
140140
/// Gets or sets the connections to support ipv6 addresses.
@@ -202,12 +202,6 @@ public IConfigBuilder WithMaxTransactionRetryTime(TimeSpan time)
202202
return this;
203203
}
204204

205-
public IConfigBuilder WithConnectionIdleTimeout(TimeSpan timeSpan)
206-
{
207-
_config.ConnectionIdleTimeout = timeSpan;
208-
return this;
209-
}
210-
211205
public IConfigBuilder WithIpv6Enabled(bool enable)
212206
{
213207
_config.Ipv6Enabled = enable;
@@ -291,15 +285,6 @@ public interface IConfigBuilder
291285
/// <remarks>Must call <see cref="ToConfig"/> to generate a <see cref="Config"/> instance.</remarks>
292286
IConfigBuilder WithMaxTransactionRetryTime(TimeSpan time);
293287

294-
/// <summary>
295-
/// Specify the connection idle timeout.
296-
/// The connection that has been idled in pool for longer than specified timeout will not be reused but closed.
297-
/// </summary>
298-
/// <param name="timeSpan">The max timespan that a connection can be reused after has been idle for.</param>
299-
/// <returns>An <see cref="IConfigBuilder"/> instance for further configuration options.</returns>
300-
/// <remarks>Must call <see cref="ToConfig"/> to generate a <see cref="Config"/> instance.</remarks>
301-
IConfigBuilder WithConnectionIdleTimeout(TimeSpan timeSpan);
302-
303288
/// <summary>
304289
/// Setting this option to true will enable ipv6 on socket connections.
305290
/// </summary>

0 commit comments

Comments
 (0)