Refactor RecActionView command invocation, remove extension

Removed the ToInvokeCommand extension method and now construct InvokeRecActionViewCommand instances directly in the batch handler. Also added an unused using directive in InvokeBatchRecActionViewsCommand.cs.
This commit is contained in:
2026-03-02 13:11:50 +01:00
parent 23246d4ebf
commit 0a3761921d
2 changed files with 3 additions and 7 deletions

View File

@@ -19,11 +19,6 @@ public record InvokeRecActionViewCommand : IRequest<bool>
public RecActionViewDto Action { get; set; } = null!;
}
public static class InvokeRecActionViewCommandExtensions
{
public static InvokeRecActionViewCommand ToInvokeCommand(this RecActionViewDto dto) => new() { Action = dto };
}
public class InvokeRecActionViewCommandHandler(
ISender sender,
IHttpClientFactory clientFactory,