Refactor: centralize HTTP client naming with Constants

Introduced a Constants class to define a unique HttpClientName for HTTP client registration and usage. Updated DependencyInjection and InvokeRecActionCommandHandler to use this centralized name, improving consistency and reducing risk of name collisions.
This commit is contained in:
2025-12-12 12:42:39 +01:00
parent 68cc919bad
commit 87e1bb9187
3 changed files with 9 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ public class InvokeRecActionCommandHandler(
{
var action = request.Action;
using var http = clientFactory.CreateClient("Default");
using var http = clientFactory.CreateClient(Constants.HttpClientName);
if (action.RestType is null)
throw new DataIntegrityException(