Refactor to support batch action invocation

Replaced `InvokeRecAction` with `InvokeBatchRecAction` in `ActionController` to transition from single-action to batch-action invocation.

Removed `InvokeRecActionCommand.cs`, which previously handled individual action invocations. Introduced `InvokeBatchRecActionsCommand.cs` to handle batch processing with similar concurrency control logic using a semaphore.

This redesign improves scalability and aligns with updated business requirements while maintaining compatibility with the existing application structure.
This commit is contained in:
2025-11-27 11:05:21 +01:00
parent cb851a4ec6
commit 0ec913b95e
2 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ public class ActionController(IMediator mediator) : ControllerBase
[HttpPost("{profileId}")]
public async Task<IActionResult> Invoke([FromRoute] int profileId)
{
await mediator.InvokeRecAction(profileId);
await mediator.InvokeBatchRecAction(profileId);
return Accepted();
}
}