Add JobExceptionHandlingBehavior and improve mappings

Introduced `JobExceptionHandlingBehavior` to handle exceptions, log errors, and rethrow them during MediatR pipeline execution. Updated `DependencyInjection.cs` to register the new behavior and added a `recClientApiUrl` parameter for API configuration.

Enhanced `ProfileMappingProfile.cs` and `GetProfileQuery.cs` with XML documentation for better readability. Improved case-insensitive filtering in `GetProfileQuery` with conditional compilation for .NET version compatibility.

Modified `CreateProfileHistoryCommand.cs` to use a non-nullable `AddedWho` property. Added missing `using` directive in `GetProfileQuery.cs` for compatibility. These changes improve code quality, maintainability, and functionality.
This commit is contained in:
2026-08-03 13:37:01 +02:00
parent 90916f6d03
commit 73db8fbd27
5 changed files with 70 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ namespace ECMJobRunner.Application.ProfileHistories.Commands
/// Created by (max 50 chars)
/// </summary>
[JsonIgnore]
public string AddedWho { get; set; } = "ECMJobRunner";
public string AddedWho { get; set; } = null!;
}
/// <summary>