From 92e7d44d3bf62f956e9bb22d4247e2bba6708c20 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 12 Dec 2025 14:58:33 +0100 Subject: [PATCH] Rename InvokeRecActionCommand to InvokeRecActionViewCommand Refactored the RecAction invocation logic by renaming and moving InvokeRecActionCommand.cs to InvokeRecActionViewCommand.cs. Updated all class, record, and extension method names accordingly. The command handling logic remains unchanged, but all references and namespaces now reflect the new naming. Removed the old InvokeRecActionCommand.cs file. --- ...ctionCommand.cs => InvokeRecActionViewCommand.cs} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename src/ReC.Application/RecActionViews/Commands/{InvokeRecActionCommand.cs => InvokeRecActionViewCommand.cs} (92%) diff --git a/src/ReC.Application/RecActionViews/Commands/InvokeRecActionCommand.cs b/src/ReC.Application/RecActionViews/Commands/InvokeRecActionViewCommand.cs similarity index 92% rename from src/ReC.Application/RecActionViews/Commands/InvokeRecActionCommand.cs rename to src/ReC.Application/RecActionViews/Commands/InvokeRecActionViewCommand.cs index e87a8a4..dacedaf 100644 --- a/src/ReC.Application/RecActionViews/Commands/InvokeRecActionCommand.cs +++ b/src/ReC.Application/RecActionViews/Commands/InvokeRecActionViewCommand.cs @@ -13,23 +13,23 @@ using System.Text.Json; namespace ReC.Application.RecActionViews.Commands; -public record InvokeRecActionCommand : IRequest +public record InvokeRecActionViewCommand : IRequest { public RecActionDto Action { get; set; } = null!; } -public static class InvokeRecActionCommandExtensions +public static class InvokeRecActionViewCommandExtensions { - public static InvokeRecActionCommand ToInvokeCommand(this RecActionDto dto) => new() { Action = dto }; + public static InvokeRecActionViewCommand ToInvokeCommand(this RecActionDto dto) => new() { Action = dto }; } -public class InvokeRecActionCommandHandler( +public class InvokeRecActionViewCommandHandler( ISender sender, IHttpClientFactory clientFactory, IConfiguration? config = null - ) : IRequestHandler + ) : IRequestHandler { - public async Task Handle(InvokeRecActionCommand request, CancellationToken cancel) + public async Task Handle(InvokeRecActionViewCommand request, CancellationToken cancel) { var action = request.Action;