3 types derived from DbConnectionInternal
System.Data.Odbc (3)
Common\System\Data\ProviderBase\DbConnectionClosed.cs (1)
8
internal abstract partial class DbConnectionClosed :
DbConnectionInternal
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionClosed.cs (1)
10
internal abstract partial class DbConnectionClosed :
DbConnectionInternal
System\Data\Odbc\OdbcConnectionOpen.cs (1)
9
internal sealed class OdbcConnectionOpen :
DbConnectionInternal
94 references to DbConnectionInternal
System.Data.Odbc (94)
Common\System\Data\ProviderBase\DbConnectionFactory.cs (5)
13
internal bool TryGetConnection(DbConnection owningConnection, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions,
DbConnectionInternal
? oldConnection, out
DbConnectionInternal
? connection)
47
Task<
DbConnectionInternal
> newTask;
82
var
newConnection = CreateNonPooledConnection(owningConnection, poolGroup, userOptions);
Common\System\Data\ProviderBase\DbConnectionPool.cs (37)
25
public PendingGetConnection(long dueTime, DbConnection owner, TaskCompletionSource<
DbConnectionInternal
> completion)
33
public TaskCompletionSource<
DbConnectionInternal
> Completion { get; }
108
private readonly ConcurrentStack<
DbConnectionInternal
> _stackOld = new ConcurrentStack<
DbConnectionInternal
>();
109
private readonly ConcurrentStack<
DbConnectionInternal
> _stackNew = new ConcurrentStack<
DbConnectionInternal
>();
128
private readonly List<
DbConnectionInternal
> _objectList;
164
_objectList = new List<
DbConnectionInternal
>(MaxPoolSize);
296
DbConnectionInternal
? obj;
325
DbConnectionInternal
? obj;
347
DbConnectionInternal
? obj;
384
private
DbConnectionInternal
CreateObject(DbConnection? owningObject, DbConnectionOptions? userOptions,
DbConnectionInternal
? oldConnection)
386
DbConnectionInternal
? newObj = null;
472
private void DeactivateObject(
DbConnectionInternal
obj)
546
internal void DestroyObject(
DbConnectionInternal
obj)
620
DbConnectionInternal
? connection = null;
664
internal bool TryGetConnection(DbConnection owningObject, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions, out
DbConnectionInternal
? connection)
716
private bool TryGetConnection(DbConnection owningObject, uint waitForMultipleObjectsTimeout, bool allowCreate, bool onlyOneCheckConnection, DbConnectionOptions? userOptions, out
DbConnectionInternal
? connection)
718
DbConnectionInternal
? obj = null;
854
private void PrepareConnection(DbConnection owningObject,
DbConnectionInternal
obj)
880
internal
DbConnectionInternal
? ReplaceConnection(DbConnection owningObject, DbConnectionOptions userOptions,
DbConnectionInternal
oldConnection)
882
DbConnectionInternal
? newConnection = UserCreateRequest(owningObject, userOptions, oldConnection);
895
private
DbConnectionInternal
? GetFromGeneralPool()
897
DbConnectionInternal
? obj;
967
DbConnectionInternal
newObj;
1010
internal void PutNewObject(
DbConnectionInternal
obj)
1020
internal void PutObject(
DbConnectionInternal
obj, object owningObject)
1059
List<
DbConnectionInternal
> reclaimedObjects = new List<
DbConnectionInternal
>();
1068
DbConnectionInternal
obj = _objectList[i];
1109
DbConnectionInternal
obj = reclaimedObjects[i];
1138
private
DbConnectionInternal
? UserCreateRequest(DbConnection owningObject, DbConnectionOptions? userOptions,
DbConnectionInternal
? oldConnection = null)
1143
DbConnectionInternal
? obj = null;
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionClosed.cs (11)
35
internal override bool TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions)
45
internal override bool TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions)
52
internal static readonly
DbConnectionInternal
SingletonInstance = new DbConnectionClosedBusy(); // singleton object
62
internal static readonly
DbConnectionInternal
SingletonInstance = new DbConnectionOpenBusy(); // singleton object
73
internal static readonly
DbConnectionInternal
SingletonInstance = new DbConnectionClosedConnecting(); // singleton object
84
internal override bool TryReplaceConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions)
87
internal override bool TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions)
101
DbConnectionInternal
openConnection = retry.Task.Result;
117
internal static readonly
DbConnectionInternal
SingletonInstance = new DbConnectionClosedNeverOpened(); // singleton object
128
internal static readonly
DbConnectionInternal
SingletonInstance = new DbConnectionClosedPreviouslyOpened(); // singleton object
134
internal override bool TryReplaceConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions)
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (18)
26
private static readonly Task<
DbConnectionInternal
?>[] s_pendingOpenNonPooled = new Task<
DbConnectionInternal
?>[Environment.ProcessorCount];
27
private static Task<
DbConnectionInternal
?>? s_completedTask;
81
internal
DbConnectionInternal
? CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions? userOptions)
90
DbConnectionInternal
? newConnection = CreateConnection(connectionOptions, poolKey, poolGroupProviderInfo, null, owningConnection, userOptions);
95
internal
DbConnectionInternal
? CreatePooledConnection(DbConnectionPool pool, DbConnection? owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions? userOptions)
100
DbConnectionInternal
? newConnection = CreateConnection(options, poolKey, poolGroupProviderInfo, pool, owningObject, userOptions);
132
private static Task<
DbConnectionInternal
?> GetCompletedTask()
135
return s_completedTask ??= Task.FromResult<
DbConnectionInternal
?>(null);
360
protected virtual
DbConnectionInternal
? CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, object poolGroupProviderInfo, DbConnectionPool? pool, DbConnection? owningConnection, DbConnectionOptions? userOptions)
365
internal DbMetaDataFactory GetMetaDataFactory(DbConnectionPoolGroup connectionPoolGroup,
DbConnectionInternal
internalConnection)
383
protected abstract DbMetaDataFactory CreateMetaDataFactory(
DbConnectionInternal
internalConnection);
385
protected abstract
DbConnectionInternal
CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, object poolGroupProviderInfo, DbConnectionPool? pool, DbConnection? owningConnection);
393
internal abstract
DbConnectionInternal
? GetInnerConnection(DbConnection connection);
399
internal abstract void SetInnerConnectionEvent(DbConnection owningObject,
DbConnectionInternal
to);
401
internal abstract bool SetInnerConnectionFrom(DbConnection owningObject,
DbConnectionInternal
to,
DbConnectionInternal
from);
403
internal abstract void SetInnerConnectionTo(DbConnection owningObject,
DbConnectionInternal
to);
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionInternal.cs (4)
303
internal virtual bool TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions)
308
internal virtual bool TryReplaceConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions)
313
protected bool TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource<
DbConnectionInternal
>? retry, DbConnectionOptions? userOptions)
318
DbConnectionInternal
? openConnection;
System\Data\Odbc\OdbcConnectionFactory.cs (8)
30
protected override
DbConnectionInternal
CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, object poolGroupProviderInfo, DbConnectionPool? pool, DbConnection? owningObject)
33
DbConnectionInternal
result = new OdbcConnectionOpen((owningObject as OdbcConnection)!, (options as OdbcConnectionString)!);
56
protected override DbMetaDataFactory CreateMetaDataFactory(
DbConnectionInternal
internalConnection)
88
internal override
DbConnectionInternal
? GetInnerConnection(DbConnection connection)
112
internal override void SetInnerConnectionEvent(DbConnection owningObject,
DbConnectionInternal
to)
117
internal override bool SetInnerConnectionFrom(DbConnection owningObject,
DbConnectionInternal
to,
DbConnectionInternal
from)
127
internal override void SetInnerConnectionTo(DbConnection owningObject,
DbConnectionInternal
to)
System\Data\Odbc\OdbcConnectionHelper.cs (11)
17
private
DbConnectionInternal
_innerConnection;
90
DbConnectionInternal
connectionInternal = InnerConnection;
108
internal
DbConnectionInternal
InnerConnection
140
DbConnectionInternal
innerConnection = _innerConnection;
215
internal void SetInnerConnectionEvent(
DbConnectionInternal
to)
230
OnStateChange(
DbConnectionInternal
.StateChangeOpen);
234
OnStateChange(
DbConnectionInternal
.StateChangeClosed);
246
internal bool SetInnerConnectionFrom(
DbConnectionInternal
to,
DbConnectionInternal
from)
251
bool result = (from == Interlocked.CompareExchange<
DbConnectionInternal
>(ref _innerConnection, to, from));
255
internal void SetInnerConnectionTo(
DbConnectionInternal
to)