Mark InvokeRecAction as obsolete with guidance

Added the `[Obsolete]` attribute to the `InvokeRecAction` method
in the `ReC.Client` namespace to discourage its use. The attribute
recommends using the `InvokeRecActionAsync` method instead to
avoid potential deadlocks and improve performance.
This commit is contained in:
Developer 02 2025-12-05 23:39:22 +01:00
parent 4c8e9be695
commit f4abac1103

View File

@ -36,6 +36,7 @@ namespace ReC.Client
/// </summary>
/// <param name="profileId"></param>
/// <returns>True if the request was successful, false otherwise</returns>
[Obsolete("Use InvokeRecActionAsync instead to avoid potential deadlocks and improve performance.")]
public bool InvokeRecAction(int profileId)
{
var resp = _http.PostAsync($"api/RecAction/invoke/{profileId}", content: null).GetAwaiter().GetResult();