@@ -21,37 +21,31 @@ internal interface IDbConnectionPool
21
21
{
22
22
#region Properties
23
23
/// <summary>
24
- /// An id that uniqely identifies this connection pool.
24
+ /// Gets the authentication contexts cached by the pool.
25
25
/// </summary>
26
- int Id { get ; }
26
+ ConcurrentDictionary < DbConnectionPoolAuthenticationContextKey , DbConnectionPoolAuthenticationContext > AuthenticationContexts { get ; }
27
27
28
28
/// <summary>
29
- /// The current state of the connection pool .
29
+ /// Gets the factory used to create database connections .
30
30
/// </summary>
31
- DbConnectionPoolState State { get ; set ; }
31
+ DbConnectionFactory ConnectionFactory { get ; }
32
32
33
33
/// <summary>
34
34
/// The number of connections currently managed by the pool.
35
35
/// May be larger than the number of connections currently sitting idle in the pool.
36
36
/// </summary>
37
37
int Count { get ; }
38
38
39
- /// <summary>
40
- /// Gets the factory used to create database connections.
41
- /// </summary>
42
- DbConnectionFactory ConnectionFactory { get ; }
43
-
44
39
/// <summary>
45
40
/// Indicates whether an error has occurred in the pool.
46
41
/// Primarily used to support the pool blocking period feature.
47
42
/// </summary>
48
43
bool ErrorOccurred { get ; }
49
44
50
45
/// <summary>
51
- /// Gets the duration of time to wait before reassigning a connection to a different server in a load-balanced
52
- /// environment.
46
+ /// An id that uniqely identifies this connection pool.
53
47
/// </summary>
54
- TimeSpan LoadBalanceTimeout { get ; }
48
+ int Id { get ; }
55
49
56
50
/// <summary>
57
51
/// Gets the identity used by the connection pool when establishing connections.
@@ -63,6 +57,12 @@ internal interface IDbConnectionPool
63
57
/// </summary>
64
58
bool IsRunning { get ; }
65
59
60
+ /// <summary>
61
+ /// Gets the duration of time to wait before reassigning a connection to a different server in a load-balanced
62
+ /// environment.
63
+ /// </summary>
64
+ TimeSpan LoadBalanceTimeout { get ; }
65
+
66
66
/// <summary>
67
67
/// Gets a reference to the connection pool group that this pool belongs to.
68
68
/// </summary>
@@ -79,9 +79,9 @@ internal interface IDbConnectionPool
79
79
DbConnectionPoolProviderInfo ProviderInfo { get ; }
80
80
81
81
/// <summary>
82
- /// Gets the authentication contexts cached by the pool.
82
+ /// The current state of the connection pool.
83
83
/// </summary>
84
- ConcurrentDictionary < DbConnectionPoolAuthenticationContextKey , DbConnectionPoolAuthenticationContext > AuthenticationContexts { get ; }
84
+ DbConnectionPoolState State { get ; set ; }
85
85
86
86
/// <summary>
87
87
/// Indicates whether the connection pool is using load balancing.
@@ -103,7 +103,7 @@ internal interface IDbConnectionPool
103
103
/// The internal connection will be set on completion source rather than passed out via the out parameter.</param>
104
104
/// <param name="userOptions">The user options to use if a new connection must be opened.</param>
105
105
/// <param name="connection">The retrieved connection will be passed out via this parameter.</param>
106
- /// <returns>Returns true if a connection was set in the out parameter, otherwise returns false.</returns>
106
+ /// <returns>True if a connection was set in the out parameter, otherwise returns false.</returns>
107
107
bool TryGetConnection ( DbConnection owningObject , TaskCompletionSource < DbConnectionInternal > taskCompletionSource , DbConnectionOptions userOptions , out DbConnectionInternal connection ) ;
108
108
109
109
/// <summary>
@@ -112,7 +112,7 @@ internal interface IDbConnectionPool
112
112
/// <param name="owningObject">The connection whos internal connection should be replaced.</param>
113
113
/// <param name="userOptions">The user options to use if a new connection must be opened.</param>
114
114
/// <param name="oldConnection">The internal connection currently associated with the owning object.</param>
115
- /// <returns></returns>
115
+ /// <returns>A reference to the new DbConnectionInternal. </returns>
116
116
DbConnectionInternal ReplaceConnection ( DbConnection owningObject , DbConnectionOptions userOptions , DbConnectionInternal oldConnection ) ;
117
117
118
118
/// <summary>
0 commit comments