Skip to content

Commit 8db887e

Browse files
committed
Connection closing improved and new version
1 parent 4b79597 commit 8db887e

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

utPLSQL.Api/utPLSQL.Api.Test/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
// Build Number
3030
// Revision
3131
//
32-
[assembly: AssemblyVersion("1.3.0.0")]
33-
[assembly: AssemblyFileVersion("1.3.0.0")]
32+
[assembly: AssemblyVersion("1.5.3.0")]
33+
[assembly: AssemblyFileVersion("1.5.3.0")]

utPLSQL.Api/utPLSQL.Api/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("utPLSQL.org")]
1212
[assembly: AssemblyProduct("utPLSQL.Api")]
13-
[assembly: AssemblyCopyright("Copyright © 2021")]
13+
[assembly: AssemblyCopyright("Copyright © 2021")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -29,5 +29,5 @@
2929
// Build Number
3030
// Revision
3131
//
32-
[assembly: AssemblyVersion("1.5.2.0")]
33-
[assembly: AssemblyFileVersion("1.5.2.0")]
32+
[assembly: AssemblyVersion("1.5.3.0")]
33+
[assembly: AssemblyFileVersion("1.5.3.0")]

utPLSQL.Api/utPLSQL.Api/TestRunner.cs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,25 @@ public void Connect(string username, string password, string database, string co
5555
/// </summary>
5656
public void Close()
5757
{
58-
produceConnection?.Close();
59-
consumeConnection?.Close();
58+
if (produceConnection != null)
59+
{
60+
try {
61+
produceConnection.Close();
62+
}
63+
catch
64+
{
65+
}
66+
}
67+
if (consumeConnection != null)
68+
{
69+
try
70+
{
71+
consumeConnection.Close();
72+
}
73+
catch
74+
{
75+
}
76+
}
6077
}
6178

6279
/// <summary>

utPLSQL.Api/utPLSQL.Api/utPLSQL.Api.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package >
33
<metadata>
44
<id>utPLSQL.Api</id>
5-
<version>1.5.2</version>
5+
<version>1.5.3</version>
66
<title>utPLSQL API</title>
77
<authors>Simon Martinelli</authors>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>
99
<license type="expression">Apache-2.0+</license>
1010
<projectUrl>https://github.com/utPLSQL/utPLSQL-dotnet-api</projectUrl>
1111
<icon>images/blue-icon-transparent.png</icon>
1212
<description>.NET API for utPLSQL</description>
13-
<releaseNotes>Only interal async behavoir changed</releaseNotes>
13+
<releaseNotes>Connection closing improved</releaseNotes>
1414
<copyright>Copyright © 2021</copyright>
1515
<tags>utPLSQL</tags>
1616
</metadata>

0 commit comments

Comments
 (0)