From 99d23bc2950dbe723ee2a290c63fc3cc50f2e29d Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Tue, 20 Sep 2022 10:40:08 +0200 Subject: [PATCH 1/2] chore(deps): upgrade RestSharp, use builtin support for `synchronous` requests --- Client.Core/Client.Core.csproj | 2 +- Client.Core/Internal/RestSharpExtensions.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Client.Core/Client.Core.csproj b/Client.Core/Client.Core.csproj index 8e58b1650..86cd9e239 100644 --- a/Client.Core/Client.Core.csproj +++ b/Client.Core/Client.Core.csproj @@ -36,7 +36,7 @@ - + diff --git a/Client.Core/Internal/RestSharpExtensions.cs b/Client.Core/Internal/RestSharpExtensions.cs index e52e76e6d..28efda99b 100644 --- a/Client.Core/Internal/RestSharpExtensions.cs +++ b/Client.Core/Internal/RestSharpExtensions.cs @@ -40,8 +40,7 @@ internal static RestRequest AddAdvancedResponseHandler(this RestRequest restRequ internal static RestResponse ExecuteSync(this RestClient client, RestRequest request, CancellationToken cancellationToken = default) { - // return client.Execute(request); - return client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false).GetAwaiter().GetResult(); + return client.Execute(request, cancellationToken); } } } \ No newline at end of file From 28dad072bc6f8ac28e1a41eaf34b6a9d9cc2112a Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Tue, 20 Sep 2022 10:46:54 +0200 Subject: [PATCH 2/2] docs: update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2400c1114..46572f54c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ 1. [#353](https://github.com/influxdata/influxdb-client-csharp/pull/353): Support for `double` types in LINQ expression [LINQ] 1. [#360](https://github.com/influxdata/influxdb-client-csharp/pull/360): Designated `HealthAsync` as obsolete in `IInfluxDBClient` +### Others +1. [#368](https://github.com/influxdata/influxdb-client-csharp/pull/368): Use builtin support for synchronous HTTP requests from `RestSharp` + ### Documentation 1. [#355](https://github.com/influxdata/influxdb-client-csharp/pull/355): Add an example how to use `EventHandler` for `WriteApi` @@ -13,6 +16,7 @@ Update dependencies: #### Build: - [#364](https://github.com/influxdata/influxdb-client-csharp/pull/364): `System.Configuration.ConfigurationManager` to `6.0.1` - [#365](https://github.com/influxdata/influxdb-client-csharp/pull/365): `Microsoft.Extensions.ObjectPool` to `6.0.9` + - [#368](https://github.com/influxdata/influxdb-client-csharp/pull/368): `RestSharp` to `108.0.2` #### Examples: - [#367](https://github.com/influxdata/influxdb-client-csharp/pull/367): `Radzen.Blazor` to `4.0.0`