From 73059d4554a7f17870c9e26b51aee4da6cd6a90b Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Fri, 5 Dec 2025 23:03:03 +0100 Subject: [PATCH] Add InvokeRecActionFakeAsync method to ReCClient A new asynchronous method `InvokeRecActionFakeAsync` was added to the `ReC.Client` namespace in `ReCClient.cs`. This method sends a POST request to the `api/RecAction/invoke/fake` endpoint. It includes XML documentation comments and accepts an optional `CancellationToken` parameter. The method ensures the response has a successful status code. --- src/ReC.Client/ReCClient.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ReC.Client/ReCClient.cs b/src/ReC.Client/ReCClient.cs index 767ae33..e680b72 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, ct); resp.EnsureSuccessStatusCode(); } + + /// + /// POST api/RecAction/invoke/fake + /// + /// + /// + public async Task InvokeRecActionFakeAsync(CancellationToken ct = default) + { + var resp = await _http.PostAsync($"api/RecAction/invoke/fake", content: null, ct); + resp.EnsureSuccessStatusCode(); + } } -} +} \ No newline at end of file