We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b12060 commit 24f3b4aCopy full SHA for 24f3b4a
sdk/Notifo.SDK/NotifoMobilePush/TrackSeenCommand.cs
@@ -8,6 +8,7 @@
8
using System;
9
using System.Collections.Generic;
10
using System.Linq;
11
+using System.Net.Http;
12
using System.Threading;
13
using System.Threading.Tasks;
14
using Notifo.SDK.CommandQueue;
@@ -67,8 +68,7 @@ private async Task TrackWithUrlsAsync(
67
68
return;
69
}
70
- var httpClient = NotifoIO.Current.Client.CreateHttpClient();
71
- try
+ using (var httpClient = new HttpClient())
72
{
73
foreach (var url in urls)
74
@@ -77,10 +77,6 @@ private async Task TrackWithUrlsAsync(
77
response.EnsureSuccessStatusCode();
78
79
80
- finally
81
- {
82
- NotifoIO.Current.Client.ReturnHttpClient(httpClient);
83
- }
84
85
86
private async Task TrackWithIdsAsync(
0 commit comments