diff --git a/src/ReC.Client/ReCClient.cs b/src/ReC.Client/ReCClient.cs index b87c011..758b2f8 100644 --- a/src/ReC.Client/ReCClient.cs +++ b/src/ReC.Client/ReCClient.cs @@ -30,5 +30,16 @@ namespace ReC.Client var resp = await _http.PostAsync($"api/RecAction/invoke/{profileId}", content: null, cancellationToken); return resp.IsSuccessStatusCode; } + + /// + /// POST api/RecAction/invoke/{profileId} (Synchronous version) + /// + /// + /// True if the request was successful, false otherwise + public bool InvokeRecAction(int profileId) + { + var resp = _http.PostAsync($"api/RecAction/invoke/{profileId}", content: null).GetAwaiter().GetResult(); + return resp.IsSuccessStatusCode; + } } } \ No newline at end of file