Closed aschwenker-insight closed 1 year ago
hello and thank you for your contribution, also opening this Issue to track why the PR is necessary! we'll take a look.
Thank you for the contribution. Your PR has been merged.
fix is now out with release 2.1.2
What is the current behavior?
The Snowflake Driver (
SnowflakDbConnection
) has aClose()
and aCloseAsync(CancellationToken)
method. These methods have similar but not the same implementation.SnowflakeDbConnection
extendsDbConnection
, which has avirtual CloseAsync()
method.DbConnection
'sCloseAsync()
method simply callsClose()
.If a user has a handle to
SnowflakeDbConnection
as aDbConnection
, they only have access toCloseAsync()
and notCloseAsync(CancellationToken)
.What is the desired behavior?
SnowflakeDbConnection
should overrideCloseAsync()
and have it callCloseAsync(CancellationToken.None)
.How would this improve
snowflake-connector-net
?Users could have a handle to
DbConnection
instead ofSnowflakeDbConnection
, which improves portability and SOLID in their code.References, Other Background
This is fixed in PR #538
What is your Snowflake account identifier, if any?