fx\src\data\System\Data\SqlClient\SqlCommand.cs (34)
455if (cachedAsyncState.PendingAsyncOperation) { // If in pending async state, throw.
607if (cachedAsyncState.PendingAsyncOperation) { // If in pending async state, throw
1328cachedAsyncState.SetActiveConnectionAndResult(completion, ADP.EndExecuteNonQuery, _activeConnection);
1391if (cachedAsyncState.EndMethodName == null) {
1394if (endMethod != cachedAsyncState.EndMethodName) {
1395throw ADP.MismatchedAsyncResult(cachedAsyncState.EndMethodName, endMethod);
1397if ((_activeConnection.State != ConnectionState.Open) || (!cachedAsyncState.IsActiveConnectionValid(_activeConnection))) {
1478if (cachedAsyncState != null) {
1479cachedAsyncState.ResetAsyncState();
1487if (cachedAsyncState != null) {
1488cachedAsyncState.ResetAsyncState();
1536cachedAsyncState.ResetAsyncState();
1555cachedAsyncState.ResetAsyncState();
1821cachedAsyncState.SetActiveConnectionAndResult(completion, ADP.EndExecuteXmlReader, _activeConnection);
1901if (cachedAsyncState != null) {
1902cachedAsyncState.ResetAsyncState();
1910if (cachedAsyncState != null) {
1911cachedAsyncState.ResetAsyncState();
2109if (cachedAsyncState != null)
2111cachedAsyncState.ResetAsyncState();
2119if (cachedAsyncState != null) {
2120cachedAsyncState.ResetAsyncState();
2318cachedAsyncState.SetActiveConnectionAndResult(completion, ADP.EndExecuteReader, _activeConnection);
3547if (cachedAsyncState != null) {
3548cachedAsyncState.ResetAsyncState();
4545cachedAsyncState.SetAsyncReaderState(ds, runBehavior, optionSettings);
4552cachedAsyncState.SetAsyncReaderState(ds, runBehavior, optionSettings);
4658SqlDataReader ds = cachedAsyncState.CachedAsyncReader; // should not be null
4661FinishExecuteReader(ds, cachedAsyncState.CachedRunBehavior, cachedAsyncState.CachedSetOptions, isInternal, forDescribeParameterEncryption, shouldCacheForAlwaysEncrypted:!forDescribeParameterEncryption);
4672cachedAsyncState.ResetAsyncState();
4909if (cachedAsyncState.PendingAsyncOperation) { // Enforce only one pending async execute at a time.
4910if (cachedAsyncState.IsActiveConnectionValid(_activeConnection)) {
4915cachedAsyncState.ResetAsyncState();