我运行测试连接,我希望看到清晰的会话浏览器,但在程序结束时,我在会话浏览器中看到超过 6 个会话
这是代码:
private void testConnection()
{
string connectionString = "data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=1111)(PORT=1699))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = abcd)));Min Pool Size=10; Connection Lifetime=120;";
OracleConnection oraConn = new OracleConnection(connectionString);
try
{
oraConn.Open();
}
catch (Exception e)
{
}
finally
{
oraConn.Dispose();
oraConn.Close();
}
}
我需要一个解决方案来完全关闭会话。