Skip to content

Commit

Permalink
Fix Client dispose bug + v1.3.2
Browse files Browse the repository at this point in the history
commit 5b5d883
Author: Paul-Henri Maillefer <[email protected]>
Date:   Tue Aug 23 11:34:35 2022 +0200

    Add unit to check client dispose + Change version to 1.3.2

commit 440dcb0
Author: PeopleCanFly <[email protected]>
Date:   Tue Aug 23 11:33:33 2022 +0200

    Bugfix for Dispose (#81)

    Co-authored-by: David Rey <[email protected]>

commit 0262d23
Author: michael-brouchoud <[email protected]>
Date:   Mon Mar 7 09:28:09 2022 +0100

    remove "true" value after --no-symbols parameters

    boolean is not required anymore NuGet/Home#11601

commit 36c2144
Author: michael-brouchoud <[email protected]>
Date:   Mon Mar 7 09:27:52 2022 +0100

    remove "true" value after --no-symbols parameters

    boolean is not required anymore NuGet/Home#11601
  • Loading branch information
P-H-Maillefer committed Aug 23, 2022
1 parent 5687a34 commit e22b676
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/DotNet/Woopsa/Client/WoopsaClientProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private string Request(string path, NameValueCollection postData, TimeSpan timeo
throw;
}
}
private void CancelPendingRequests() => _httpClient.CancelPendingRequests();
private void CancelPendingRequests() => _httpClient?.CancelPendingRequests();

#endregion

Expand Down
2 changes: 1 addition & 1 deletion Sources/DotNet/Woopsa/Woopsa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.0</NetStandardImplicitPackageVersion>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<VersionPrefix>1.3.1</VersionPrefix>
<VersionPrefix>1.3.2</VersionPrefix>
<Copyright></Copyright>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
Expand Down
7 changes: 7 additions & 0 deletions Sources/DotNet/WoopsaTest/UnitTestWoopsaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ public class UnitTestWoopsaClient

#endregion

[TestMethod]
public void TestClientSimpleInstanciationAndDispose()
{
using (WoopsaClient client = new WoopsaClient("http://localhost:10000/woopsa"))
{ }
}

[TestMethod]
public void TestWoopsaClientSubscriptionChannel()
{
Expand Down

0 comments on commit e22b676

Please sign in to comment.