Skip to content

Clear pool for all Oracle drivers. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

fredericDelaporte
Copy link

No description provided.

using (var clearConnection = driver.CreateConnection())
{
clearConnection.ConnectionString = connectionString;
_clearPool.Invoke(null, new object[] {clearConnection});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we build a delegate instead of calling bare MethodInfo?

return;
}

_clearAllPools.Invoke(null, Array.Empty<object>());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

/// <param name="driver">The driver for which the connection pool has to be cleared.</param>
/// <param name="connectionString">The connection string of connections for which to clear the pool.
/// <c>null</c> for clearing them all.</param>
internal static void ClearPool(T driver, string connectionString)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be public, otherwise is not callable from out-of-core drivers

@bahusoid bahusoid merged commit 3a307a0 into bahusoid:tableAlias Jan 8, 2018
@bahusoid
Copy link
Owner

bahusoid commented Jan 8, 2018

I will try to address all the requested changes

@fredericDelaporte fredericDelaporte deleted the tableAlias branch January 8, 2018 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants