Rename ToStatus to ToRecStatus for HttpStatusCode conversion

Standardize extension method naming by renaming ToStatus to ToRecStatus for converting HttpStatusCode to RecStatus across the codebase. Updated all usages and related tests for consistency and clarity.
This commit is contained in:
2026-03-30 11:40:26 +02:00
parent a03d21ebc6
commit 47698b9046
3 changed files with 3 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ public class InvokeRecActionViewCommandHandler(
await sender.Send(new InsertResultCommand()
{
Status = response.StatusCode.ToStatus(),
Status = response.StatusCode.ToRecStatus(),
ActionId = action.Id,
Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }),
Body = resBody,

View File

@@ -30,5 +30,5 @@ public static class RecStatusExtensions
_ => status.ToHttpStatusCode() is HttpStatusCode httpStatus && httpStatus.IsSuccess()
};
public static RecStatus ToStatus(this HttpStatusCode code) => (RecStatus)(short)code;
public static RecStatus ToRecStatus(this HttpStatusCode code) => (RecStatus)(short)code;
}