Skip to content

Commit f75a9d4

Browse files
authored
chore(deps): upgrade RestSharp, use builtin support for synchronous requests (#368)
1 parent 83fc2da commit f75a9d4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
1. [#353](https://github.com/influxdata/influxdb-client-csharp/pull/353): Support for `double` types in LINQ expression [LINQ]
55
1. [#360](https://github.com/influxdata/influxdb-client-csharp/pull/360): Designated `HealthAsync` as obsolete in `IInfluxDBClient`
66

7+
### Others
8+
1. [#368](https://github.com/influxdata/influxdb-client-csharp/pull/368): Use builtin support for synchronous HTTP requests from `RestSharp`
9+
710
### Documentation
811
1. [#355](https://github.com/influxdata/influxdb-client-csharp/pull/355): Add an example how to use `EventHandler` for `WriteApi`
912

@@ -13,6 +16,7 @@ Update dependencies:
1316
#### Build:
1417
- [#364](https://github.com/influxdata/influxdb-client-csharp/pull/364): `System.Configuration.ConfigurationManager` to `6.0.1`
1518
- [#365](https://github.com/influxdata/influxdb-client-csharp/pull/365): `Microsoft.Extensions.ObjectPool` to `6.0.9`
19+
- [#368](https://github.com/influxdata/influxdb-client-csharp/pull/368): `RestSharp` to `108.0.2`
1620

1721
#### Examples:
1822
- [#367](https://github.com/influxdata/influxdb-client-csharp/pull/367): `Radzen.Blazor` to `4.0.0`

Client.Core/Client.Core.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
3737
<PackageReference Include="NodaTime" Version="3.1.2" />
3838
<PackageReference Include="NodaTime.Serialization.JsonNet" Version="3.0.0" />
39-
<PackageReference Include="RestSharp" Version="108.0.1" />
39+
<PackageReference Include="RestSharp" Version="108.0.2" />
4040
</ItemGroup>
4141

4242
</Project>

Client.Core/Internal/RestSharpExtensions.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ internal static RestRequest AddAdvancedResponseHandler(this RestRequest restRequ
4040
internal static RestResponse ExecuteSync(this RestClient client,
4141
RestRequest request, CancellationToken cancellationToken = default)
4242
{
43-
// return client.Execute(request);
44-
return client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false).GetAwaiter().GetResult();
43+
return client.Execute(request, cancellationToken);
4544
}
4645
}
4746
}

0 commit comments

Comments
 (0)