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 7334e28 commit 3c7d83cCopy full SHA for 3c7d83c
1 file changed
src/RestSharp/RestClient.Extensions.cs
@@ -50,6 +50,15 @@ public static async Task<RestResponse<T>> ExecuteAsync<T>(
50
public static RestResponse<T> Execute<T>(this IRestClient client, RestRequest request)
51
=> AsyncHelpers.RunSync(() => client.ExecuteAsync<T>(request));
52
53
+ /// <summary>
54
+ /// Executes the request synchronously, authenticating if needed
55
+ /// </summary>
56
+ /// <typeparam name="T">Target deserialization type</typeparam>
57
+ /// <param name="client"></param>
58
+ /// <param name="request">Request to be executed</param>
59
+ public static RestResponse Execute(this IRestClient client, RestRequest request)
60
+ => AsyncHelpers.RunSync(() => client.ExecuteAsync(request));
61
+
62
/// <summary>
63
/// Executes the request asynchronously, authenticating if needed
64
/// </summary>
0 commit comments