rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
@@ -10,8 +10,15 @@ public class LocalAuditService(
ILogger<LocalAuditService> logger)
: ILocalAuditService
{
/// <summary>
/// Creates an audit log entry asynchronously, forwarding the provided data to the audit service with a reason when one is supplied, and logging any errors that occur.
/// </summary>
/// <param name="user">The claims principal representing the user performing the action; used to attribute the audit log entry.</param>
/// <param name="dataOriginal">The original data before the change.</param>
/// <param name="dataModified">The modified data after the change.</param>
/// <param name="reason">An optional reason for the change; when null, the audit log is created without supplying a reason.</param>
public async Task CreateAuditLogAsync(ClaimsPrincipal? user, object? dataOriginal, object? dataModified,
string? reason)
string? reason)
{
try
{
@@ -32,6 +39,11 @@ public class LocalAuditService(
}
}
/// <summary>
/// Asynchronously deep copies the specified data, attempting a primary copy method and falling back to a JSON-based copy if the primary fails. Returns the default value if both copy attempts fail.
/// </summary>
/// <param name="data">The data to be deep copied.</param>
/// <returns>A task representing the asynchronous operation, containing the deep copy of the data, or <c>null</c> if both copy methods fail.</returns>
public async Task<T?> DeepCopyAsync<T>(T data)
{
try