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.
This commit is contained in:
parent
e774afc85e
commit
73059d4554
@ -30,5 +30,16 @@ namespace ReC.Client
|
||||
var resp = await _http.PostAsync($"api/RecAction/invoke/{profileId}", content: null, ct);
|
||||
resp.EnsureSuccessStatusCode();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// POST api/RecAction/invoke/fake
|
||||
/// </summary>
|
||||
/// <param name="ct"></param>
|
||||
/// <returns></returns>
|
||||
public async Task InvokeRecActionFakeAsync(CancellationToken ct = default)
|
||||
{
|
||||
var resp = await _http.PostAsync($"api/RecAction/invoke/fake", content: null, ct);
|
||||
resp.EnsureSuccessStatusCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user